Author Topic: ssget _CP Problem  (Read 292 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 374
ssget _CP Problem
« 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)
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 ?

ronjonp

  • Needs a day job
  • Posts: 6401
Re: ssget _CP Problem
« Reply #1 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.
« Last Edit: March 17, 2017, 01:58:19 pm by ronjonp »

Windows 10 x64 - AutoCAD /C3D 2018

Custom Build PC

mailmaverick

  • Bull Frog
  • Posts: 374
Re: ssget _CP Problem
« Reply #2 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.

ronjonp

  • Needs a day job
  • Posts: 6401
Re: ssget _CP Problem
« Reply #3 on: March 20, 2017, 08:57:24 am »
Glad you got it sorted.

Windows 10 x64 - AutoCAD /C3D 2018

Custom Build PC