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

Please try the code sample below in the iLogic rule -

Dim oAsm As AssemblyDocument
oAsm = ThisApplication.ActiveDocument
	
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = oAsm.ComponentDefinition

Line1:
Dim oComp As ComponentOccurrence
oComp = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyOccurrenceFilter, "Select a components")

Dim oCons As AssemblyConstraint

For Each oCons In oComp.Constraints
    If oCons.Type = kAngleConstraintObject Or oCons.Type = kAngleConstraintProxyObject Then
        oCons.Delete
    End If
Next

GoTo Line1
Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com