iLogic Quick Tip: Remove Assembly Appearance Overrides

I adapted an API sample to work with iLogic. This utility removes assembly appearance overrides in your assemblies, as shown below.

Here’s the code:

Public Sub RemoveAssemblyOverrides()
    ' Get the active assembly document.
    Dim asmDoc As AssemblyDocument
    Set asmDoc = ThisApplication.ActiveDocument

    ' Iterate through the objects that have an override.
    Dim obj As ComponentOccurrence
    For Each obj In asmDoc.ComponentDefinition.AppearanceOverridesObjects
        ' Set it so the occurrence uses the original color of the part.
        obj.AppearanceSourceType = kPartAppearance
End Sub

One thought on “iLogic Quick Tip: Remove Assembly Appearance Overrides

Comments are closed.

Create a website or blog at

Up ↑

%d bloggers like this: