Level of Detail through VBA - Inventor 2008

Level of Detail through VBA - Inventor 2008

Anonymous
Not applicable
814 Views
2 Replies
Message 1 of 3

Level of Detail through VBA - Inventor 2008

Anonymous
Not applicable

This is the scenario: a certain assembly file that has a number of LODs.

If the document is initialized in VBA as an Inventor.AssemblyDocument...somewhere down the line it should possible to say..count the number of LODs but..there is nothing in the object model that allows the Representation Manager (parent of the LOD manager) to bubble up all the way to the assy document.

 

Can someone please tell me what's the VBA path from AssyDocument to LevelofDetailRepresentations ??  Thank you in advance.

0 Likes
815 Views
2 Replies
Replies (2)
Message 2 of 3

jeff.pek
Community Manager
Community Manager

Hi -

 

The RepresentationsManager is available from the AssemblyComponentDefinition. So, with a document, you first need to get to the ComponentDefinition:

 

   assemblyDoc.ComponentDefinition.RepresentationsManager

 

Jeff

0 Likes
Message 3 of 3

Anonymous
Not applicable

Yes...that did it. Thank you.

0 Likes