Author Topic: two questions about selection  (Read 1896 times)

0 Members and 1 Guest are viewing this topic.

vladimirzm

  • Guest
two questions about selection
« on: January 27, 2009, 04:35:12 PM »
hi

1º is there any way to know which objects were selected by SHIFT+SELECT?. i mean, i have a selection set ("final-selset") highlighted then i need remove objects from this set through another selection ("temp-selset"), the problem is what i need it works "autocad-like": SHIFT+SELECT must create another selection set to do some test before remove.

2º is there any way to simulate ssget ":S" (single method) through VisualLisp, by SelectionSet object?

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: two questions about selection
« Reply #1 on: January 27, 2009, 04:52:37 PM »
1st look at (setq ss(ssgetfirst))

2nd whay would you not use the ssget & convert to vl?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

vladimirzm

  • Guest
Re: two questions about selection
« Reply #2 on: January 27, 2009, 05:06:57 PM »
1 well i'll see again ssgetfirst if i lost something.

2 actually that's what i do but i was wondering if there's a way to avoid this

DEVITG

  • Bull Frog
  • Posts: 481
Re: two questions about selection
« Reply #3 on: January 28, 2009, 11:44:08 AM »

about point 2 , once I read in Cadalist , that is better not to use SelectionSet object .
i think it was

;;;Author
;;;R. Robert Bell


What I do is to convert th SS in a OBJ list  , so it can be handle by foreach ,
Often I use the

VLA-GETACTIVESELECTIONSET after a SSGET .

But I feel confort with a OBJ LIST

Location @ Córdoba Argentina Using ACAD 2019  at Window 10