alanjt 发表于 2022-7-6 11:25:11

You can use as much stuff together for ssget.
eg.

(ssget "_X" '((0 . "LINE,ARC,*POLYLINE") (8 . "PIZZA")))
This will select all lines, arcs and *polylines (works on same filtering principals as wcmatch) that reside on layer PIZZA.

cadman6735 发表于 2022-7-6 11:29:22

 
 
 
 
Thanks for the Reference Manual this will be very handy:thumbsup:

alanjt 发表于 2022-7-6 11:32:30

 
You're welcome. You can also type out a function in VLIDE, highlight and click on the help button and it will give you a full explanation of it. :wink:

cadman6735 发表于 2022-7-6 11:35:27

 
 
 
 
BAM, thank you
 
Last question, I promise(at least in this thread and for today)
 
 
What is the * for before polyline?Why does the poly get the * and none of the other elements?

alanjt 发表于 2022-7-6 11:41:05

To select LWPolylines and Polylines. As I mentioned, look at wcmatch.:wink:

cadman6735 发表于 2022-7-6 11:41:56

 
 
 
Ok, I'm sorry, one more question since I am here and thinking about it.
 
(wcmatch, wild card match, I am reading about it now, thanks for the point)
 
 
My question:
(ssget "_x" '((0 . "line,arc,*polyline")
 
 
The "_x" will select all elements in my drawing and the (0 . "line,arc") will filter out the lines and arcs from this selection set.
 
So ssget is nothing more than a selection set filter? (end of story?)

alanjt 发表于 2022-7-6 11:47:29

entsel/nentsel/nentselp are single entity object selection.
ssget is a multiple entity selection with very extensive filter options.

cadman6735 发表于 2022-7-6 11:51:29

 
 
Alan
 
Thank you for helping me understand the ssget function, the user guide and for introducing me to wcmatch.
 
 
My main confusion came from me trying to use (ssget) the same way as (entget) but for multiple objects...I am new to all this lisp stuff, so getting my head around it and swimming in too much information confusses me.
 
 
 
Our discussion and the following web site helped me understand, maybe it will help another lost mind too.
 
http://rkmcswain.blogspot.com/2008/08/exploring-autolisp-ssget-function-part.html
 
 
http://rkmcswain.blogspot.com/2008/08/exploring-autolisp-ssget-function-part_20.html
 
 
 
 
Thanks again

alanjt 发表于 2022-7-6 11:52:11

happy to help.
页: 1 [2]
查看完整版本: nentsel, entget, ssget questio