The name of the layer should be string like the first line of code you brought .
Code:(8 . "cod")

Registered forum members do not see this ad.
I need select a Polyline with a variable,
This code is ok!
(setq selpline (ssget "_x" '((0 . "LWPOLYLINE")(8 . "First"))))
I need convert to:
(setq cod "Second")
(setq selpline (ssget "_x" '((0 . "LWPOLYLINE")(8 . cod))))
But this code return
Command: ; error: bad SSGET list value
I need help to make this code.
Thanks
Rodrigo
The name of the layer should be string like the first line of code you brought .
Code:(8 . "cod")
- When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper

thank you ! =)
You're welcome!
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper

if i use
(setq valor "X1")
(setq selpline (ssget "_x" '((0 . "LWPOLYLINE")(8 . "valor"))))
The lisp does not recognize the value of the variable
If use variable with "" the lisp recognize VALOR and not X1
Any help?
- When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said
Registered forum members do not see this ad.
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Bookmarks