Sample iLogic code that links Level of detail to a Positional Representation

Sample iLogic code that links Level of detail to a Positional Representation

Anonymous
Not applicable
435 Views
1 Reply
Message 1 of 2

Sample iLogic code that links Level of detail to a Positional Representation

Anonymous
Not applicable

Hi

 

I have an assembly with several Levels Of Detail and I want Positional Representations to change accordingly.  Does any have a sample of an iLogic code that associates LOD with Positional Representations; or can someone let me know what is wrong with the code below;

 

Dim oAsmCompDef As AssemblyComponentDefinition
Dim oLOD As LevelOfDetailRepresentation 


oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

 

If oAsmCompDef.RepresentationsManager.LevelOfDetailRepresentations.Item("LOD_A") Is active Then

oAsmCompDef.RepresentationsManager.PositionalRepresentations.Item("PR_A").activate

ElseIf  oAsmCompDef.RepresentationsManager.LevelOfDetailRepresentations.Item("LOD_B") Is active Then

oAsmCompDef.RepresentationsManager.PositionalRepresentations.Item("PR_B").activate

End If

 

Thanks

0 Likes
436 Views
1 Reply
Reply (1)
Message 2 of 2

RodrigoEiras
Advocate
Advocate

 

Hi,

 

You may get a better result if you post your question in INVENTOR CUSTOMIZATION forum.

 

Best regards

 

 

 

0 Likes