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

@Anonymous,

 

Try below iLogic code

 

Dim oAsm As AssemblyDocument = ThisApplication.ActiveDocument
Dim oAsmCompDef As AssemblyComponentDefinition = oAsm.ComponentDefinition
Line1 :
comp = ThisApplication.CommandManager.Pick(
SelectionFilterEnum.kAssemblyOccurrenceFilter,
"Select a components")

Dim oConstraint As AssemblyConstraint
For Each oConstraint In comp.Constraints
    If oConstraint.Type = kAngleConstraintObject Then
         Call oConstraint.Delete()		 
    End If
Next

GoTo Line1

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network