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.
Thanks for the Reference Manual this will be very handy:thumbsup:
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:
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? To select LWPolylines and Polylines. As I mentioned, look at wcmatch.:wink:
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?) entsel/nentsel/nentselp are single entity object selection.
ssget is a multiple entity selection with very extensive filter options.
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 happy to help.
页:
1
[2]