Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
anandax
1156 Views, 10 Replies

iLogic rule to unsuppress subassemblies and their components

Hi, 

 

i have a code to unsuppress the components in the assembly. Unfortunately, no subassemblies are considered. How i can unsuppress subassemblies and their components?

 

Dim oComp As ComponentOccurrence
Dim oComps As ComponentOccurrences

oComps = ThisDoc.Document.ComponentDefinition.Occurrences

For Each oComp In oComps
	If Component.IsActive(oComp.Name) = False Then oComp.Unsuppress
Next