Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
johnster100
145 Views, 1 Reply

Get Sketch Line From Geometric Constraint

Hi,

I'm trying to delete all the geometric constraints from a sketchline. I can check the EntityOne and I can see it's the curve I want but the 'Is' statement in the 'If' statement returns false :disappointed_face:

 

What am i doing wrong?

 

	For Each oConstraint As GeometricConstraint In oSketch.GeometricConstraints
		If oConstraint.EntityOne is oL Then
			oConstraint.Delete
	End If


Next