×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Change part attribute with journal when working in drawing (master model)

Change part attribute with journal when working in drawing (master model)

Change part attribute with journal when working in drawing (master model)

(OP)
Hi,

I'm trying to set part attributes with a VB journal. This all works fine when I'm in the part itself by using:

CODE --> vb

Dim workPart As Part = theSession.Parts.Work 
and further on

CODE --> vb

workPart.SetUserAttribute(_attributeTitle1, -1, _attributeValue1, Update.Option.Later) 

However, when I'm in the drawing of this part (master model), I cannot set the attribute of the actual part, it only sets the ?object? attribute of the drawing. Is there a method to set the part attribute? Or do I have to open the part and set the attributes there by using some code to open the part in the background?

RE: Change part attribute with journal when working in drawing (master model)

You can set the part attributes of a component part file while working in the assembly. Open an assembly, start the journal recorder, select a component, edit properties -> attributes, make sure you change the "apply to" option to "part". The resulting recorded code should show you how to apply an attribute to the part.

You will need write access to the component part file so that you can save the changes you make to it.

www.nxjournaling.com

RE: Change part attribute with journal when working in drawing (master model)

(OP)
How do I get into this window? I'm working in NX 10.0, but I do not see the drop down menu in the window? I go to File > Properties and then I only see 'Displayed part properties'. Is there another way to reach the window you show?

UPDATE: Sorry, I found the menu by right clicking on the part in the assembly navigator

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources