Jump to content

Recommended Posts

Posted

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

Posted

The name of the layer should be string like the first line of code you brought .

 

(8 . "cod")

Posted

http://www.cadtutor.net/forum/showpost.php?p=258390&postcount=20

Posted

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?

Posted
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?

 

Hola . :)

 

It should like this .

 

(setq valor "X1")
(setq selpline (ssget "_x" [b](list[/b] '(0 . "LWPOLYLINE")([b]cons[/b] 8 valor))))

Posted
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?

 

Did you read the post I linked to?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...