TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mailmaverick on March 17, 2017, 01:02:43 PM

Title: ssget _CP Problem
Post by: mailmaverick on March 17, 2017, 01:02:43 PM
I have found a bug in ssget _CP
I have a closed poyline in which out of multiple vertices, two vertices are very close to each other. Note that they are not duplicate but at a distance of 0.0001.

Now when I take Poly-Pts (courtesy GILE - http://forums.augi.com/showthread.php?83935-Creating-a-list-Polyline-vertices (http://forums.augi.com/showthread.php?83935-Creating-a-list-Polyline-vertices))
and use (setq ss (ssget _CP Coords (list (cons 0 "TEXT")))), it does not select the text in between the polyline. The text is completely inside the polyline.

When I remove the extra vertex, it works fine.

I couldn't understand why this problem occurs ?
Title: Re: ssget _CP Problem
Post by: ronjonp on March 17, 2017, 01:54:10 PM
Is the text fully on the screen? Has to be visible for point selections.

Maybe provide a sample drawing, I cannot replicate this.
Title: Re: ssget _CP Problem
Post by: mailmaverick on March 19, 2017, 05:19:05 AM
Hi Ron

Sorry for late reply. In my earlier attempt, the text was fully on screen - I am well aware that _CP selects only those objects which are currently visible on screen.

However, after many hit and trials, I found that when I zoom into the particular place and do (vla-Regen doc acActiveViewport), the problem is solved. Don't know why.
Title: Re: ssget _CP Problem
Post by: ronjonp on March 20, 2017, 08:57:24 AM
Glad you got it sorted.