Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having some trouble with the ssget function. I want to just select objects within the curent active layer, but it isn't working. If I input the name manually then the code works.
(setq ss (ssget "WP" box '((-4 . "<AND") (-4 . "<OR") (0 . "TEXT") (0 . "LWPOLYLINE") (-4 . "OR>") (8 . "Road Points") (-4 . "AND>"))))
But when I replace the layer name by a variable, it says error: bad SSGET list value
(setq curLay (getvar "clayer"))
(setq ss (ssget "WP" box '((-4 . "<AND") (-4 . "<OR") (0 . "TEXT") (0 . "LWPOLYLINE") (-4 . "OR>") (8 . curLay) (-4 . "AND>"))))
Is there a way to get this to work, so I only select objects in the current layer?
Solved! Go to Solution.