Message 1 of 2
Fusion 360 Python Script - Get Part Material when Exporting A Bill Of Materials
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I am using a Python script to export a "bill of materials" from a Fusion 360 Assembly.
Here is part of my code so far....
for i in range(0, occurrences.count):
occ: adsk.fusion.Occurrence = occurrences.item(i)
PartNumber = re.split(' v\d+', occ.name)[0]
PartDescription = occ.component.description
PartMaterial - occ.component.????????
All I need to know s how to get a parts material property, highlighted in red.
For example, steel, rubber, plastic etc
Many thanks in advance!
Kindest Regards
Darren