Hi all,
I have a master assembly, using 'SavecopyAs' command I am creating copy of this assembly with few parts suppressed (LevelofDetail1).
In the newly created assembly I need to export BOM automatically using below command. But it is possible only when levelofDetail is in 'Master' not in 'LevelofDetail1'. I am looking for a code that automatically activate 'Master' and execute the Export.BOM command.
ThisBOM.Export("Parts Only", "RoofpanelBOM.xls", kMicrosoftExcelFormat)
Looking for help
Thanks
Rudresh
Solved! Go to Solution.
Solved by Curtis_Waguespack. Go to Solution.
Hi rudresh_middleby,
This should work:
'activate Master LOD
ThisApplication.ActiveDocument.ComponentDefinition. _
RepresentationsManager.LevelofDetailRepresentations("Master").Activate
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com