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

How do delete the Angle Constraint of Selected Components in Assembly ILogic

Hi,
I want to delete the Angle Constraint of Components which are selecting by me.
I have tried below Loop code but it showing attached error. Can you please help me to find the error in this code.

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

Thanks & Regards,
Manoj Sampath