iLogic and suppression of parts in assemblies

Top  Previous  Next

This has some useful info...


...but basically you need a custom level of detail to be present and active if you want to suppress parts inside assemblies with iLogic.



Setting the Level of Detail with iLogic


iLogic requires a custom Level of Detail (LoD) before it can perform an operation that suppresses a component. If a custom LoD is not active or one does not exist you will get an error message. I get a lot of enquires about this dialog box and how one can avoid the hassle.


First create a rule called “LoD” and populate with the following code:


Dim doc as AssemblyDocument = ThisDoc.Document

Dim oLOD As LevelOfDetailRepresentation

Dim oAsmCompDef As ComponentDefinition

oAsmCompDef = doc.ComponentDefinition


  oLOD = oAsmCompDef.RepresentationsManager.LevelOfDetailRepresentations.Item("iLogic").Activate(True)


  Dim nLOD As LevelOfDetailRepresentation

  nLOD = oAsmCompDef.RepresentationsManager.LevelOfDetailRepresentations.Add("iLogic")

  oLOD = nLOD


  oLOD = oAsmCompDef.RepresentationsManager.LevelOfDetailRepresentations.Item("iLogic").Activate(True)

End Try




Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)