Apparent anomaly in ACAD 2008 when deleting vertices on LEADERs using Active X methods
1. Once one vertex has been deleted, using:
(vlax-put obj 'coordinates (remove-triple coords index))
a second call on a different point fails with:
Exception occurred
A solution apparently is:
(entmod (entget obj))
before attempting to modify the LEADER.
Problem does not occur when adding vertices to a LEADER.
Code attached.
Acknowledgements:
Thanks to Kerry Brown & Gile for insight into making the LWPOLYLINE routines work in any coordinate system.
They and others have posted better & more complete routines for plines.