Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ilogic to automatically set LevelofDetail to Master

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
rudresh_middleby
360 Views, 2 Replies

Ilogic to automatically set LevelofDetail to Master

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

2 REPLIES 2
Message 2 of 3

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

Message 3 of 3

Thanks Curtis

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report