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:
and further on
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?
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
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 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)
UPDATE: Sorry, I found the menu by right clicking on the part in the assembly navigator