Ilogic to automatically set LevelofDetail to Master

Ilogic to automatically set LevelofDetail to Master

Anonymous
Not applicable
518 Views
2 Replies
Message 1 of 3

Ilogic to automatically set LevelofDetail to Master

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
519 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant
Accepted 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

EESignature

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks Curtis

0 Likes