Look into the ssget function.
Registered forum members do not see this ad.
I'm trying to get a selection set from a list.The selection I would like is assoc 301 from this.I have a start I think,but no go.
Code:(setq aa (entget "x" '((0 . "MAPS_SOLID" (301 . "on")))Code:Select object: ((-1 . <Entity name: 7ffff808470>) (0 . "MAPS_SOLID") (330 . <Entity name: 7ffff803e50>) (5 . "607") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "M-SALP-GVDU-REC") (8 . "M-SALP-GVDU-REC") (300 . "TRANS HOLE") (300 . "None") (300 . "Not Set") (300 . "Galvanized") (300 . "24") (300 . "24") (300 . "24 (inch)") (300 . "0") (300 . "") (300 . "") (306 . "On") (305 . "On") (301 . "On"))
Look into the ssget function.
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
(ssget "x" '((0 . "MAPS_SOLID" )(301 . "on")))
I had tried that before.Will keep looking
That should be correct - providing you have the correct data in the Filter list.
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
That second code field up top was a (entget(car(entsel))).It's returning nil and not highlighting the object
This will create the selection but not filter enough
(sssetfirst nil (ssget "_X" '((0 . "MAPS_SOLID"))))
This for some reason will not
(sssetfirst nil (ssget "_X" '((0 . "MAPS_SOLID")(301."on"))))
Last edited by Accoes; 20th May 2010 at 07:49 pm. Reason: add entries
How about this?
Code:(sssetfirst nil (ssget "_X" '((0 . "MAPS_SOLID")(301 . "On"))))
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Bingo....That space was causing the headache.
Thanks for the help.I have another question and tried to look it up but could not figure away to put it in a search.The apostrophe after the "_x".What does that tell
it?
Last edited by Accoes; 20th May 2010 at 09:49 pm.
Explanation of the Apostrophe:
http://www.cadtutor.net/forum/showpost.php?p=258390&postcount=20
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Just to clarify,it was not a space but a lower case string.
Registered forum members do not see this ad.
In the first post in the second code section ,I would like to filter with one of the associate 300 series.Is it posible to choose one when there are several or do you have to parse them out?
Bookmarks