Getting the part number out of ExtractBOM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I want to extract a bill of materials out of Fusion and to do this I want to modify the ExtractBOM (Python) for two purposes:
First one is to write it into a text file. This is already done. You can see the result in the attached file.
The second one is my problem. In addition to part name and quantity I also want to get the part number that we assigned - the one you assign in the properties of each object. I am able to do this for the part name etc. but I can't get it to work for the part number. I don't know which variable to use here. I expect it's something similar to line 34 (in the py file):
item['name'] --> item['number']
Or maybe something like in line 57:
comp = occ.component --> number = occ.number
Does anybody know how to extract the part number?
Thanks!