Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
bhavik4244
in reply to: mike.krudt

@mike.krudt 

 

Hi there,

 

For your "type" = "laser" below rule would work fine, you may replace the strings as per your need for further requirements.

 

Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences
	
If iProperties.Value(oOccurrence.Name, "Custom", "type") = "laser"
oOccurrence.Visible = False

Else
End If

Next

Bhavik Suthar