MartijnH
Mechanical
- Sep 24, 2013
- 18
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:
Dim workPart As Part = theSession.Parts.Work
Code:
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?