Export of active assembly BOM to Excel Template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, Me and Chat GPT-4 had a conversation today about ilogic code to export the BOM of my open assembly. We came out on the right path until my limit was over and GPT 3.5 took over and ruined the whole thing 🙂
Im hoping here someone with good knowledge could help me out with a code i could run to export my BOM.
I would like to make my own template with headers and text, logo etc.
For example.
In cell A1 i want the assembly name.
Cell A2 i want todays date.
Cell A3 i want the Iproperty Title.
Row 4 will be headers for the bom. Item number, part number, quantity etc.
I would like the Excel template to have 5 or more sheet`s
In sheet 1 i want to export the Structured bom with only a few selected properties starting in Cell A5
Sheet 2 i want all my sheet metal parts from Parts only bom. ( so a filter needs to be applied)
Sheet 3 i want all parts from Parts only bom that has a custom property i have (Producttype) to have the value Phurchased.
Sheet 4 i want all the parts from parts only bom that has the custom property (Spare Part) set to Yes.
And so on with sheet 5 or more...
In all sheets i want to specify witch property i want to fill in.
And the save as the template to the same name as the assembly file and the same path as the assembly file.
I know it alot to ask for a complete code but i am tired of google and endless hours on silly failures. 🙂
Hope someone takes up on the challange. I think this would be useful for many year to come.
I will forever be greatful 🙂