Message 1 of 3
GeometricConstraints Object

Not applicable
02-13-2005
10:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm was trying to write a macro to remove all of the geometric contraints from a Title Block sketch and I noticed something odd. The Count property wasn't returning the number of constraints on my sketch - it was reporting more. What's more, I couldn't delete several of the constraints, even though their Type seemed normal - some were Coincident and some were Parallel.
I finally got all of the 'actual' constraints deleted (the ones that actually appeared when I showed constraints on the sketch elements) and I still had those few extra constraints being reported by the GeometricConstraints object.
Is anyone familiar with this object and what is happening? I have another TB sketch with several thousand constraints (imported from ACAD) that I'd like to use this macro to remove, but it is leaving behind many hundreds instead of just a few.
I finally got all of the 'actual' constraints deleted (the ones that actually appeared when I showed constraints on the sketch elements) and I still had those few extra constraints being reported by the GeometricConstraints object.
Is anyone familiar with this object and what is happening? I have another TB sketch with several thousand constraints (imported from ACAD) that I'd like to use this macro to remove, but it is leaving behind many hundreds instead of just a few.