Message 1 of 1
Drawing Title Black - Using Part "Attributes"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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