Drawing Title Black - Using Part "Attributes"

Drawing Title Black - Using Part "Attributes"

isocam
Collaborator Collaborator
92 Views
0 Replies
Message 1 of 1

Drawing Title Black - Using Part "Attributes"

isocam
Collaborator
Collaborator

Can anybody help?

 

I can set a Fusion part's "Attribute" value using the following Python code.....

 

def SetProperty(PropertyName, PropertyValue):
app = adsk.core.Application.get()

selectedComponent = adsk.fusion.Design.cast(app.activeProduct).rootComponent

compAttributes = selectedComponent.attributes

newAttribute = compAttributes.add('PartAttributes', PropertyName, PropertyValue)

 

For example, Say I want to set a parts "Attribute" PropertyName "Part Finish" to PropertyValue "PAINT RED", can I use this PropertyName & PropertyValue in a custom drawing title block?

 

If you can, how can I implement it?

 

Many thanks in advance!

 

Darren

0 Likes
93 Views
0 Replies
Replies (0)