layer change lsp

layer change lsp

Anonymous
Not applicable
1,033 Views
4 Replies
Message 1 of 5

layer change lsp

Anonymous
Not applicable

hello, I wrote this lsp. but doesnt work. I wonder why not. some help me

(defun c:lxxx ()
(if (= (tblsearch "layer" "aaa") nil)                 
(command "-layer" "m" "aaa" "c" "250" "l" "center" "" ""))
(setq ss (ssget))
(command "-layer" "s" "aaa" "")                
(command "change" "p" "" "p" "la" "aaa" "")
(princ)
)

0 Likes
Accepted solutions (1)
1,034 Views
4 Replies
Replies (4)
Message 2 of 5

hak_vz
Advisor
Advisor

Try to finish this task yourself. Follow commands parameters and look what is missing. YOu may use command chprop.

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 3 of 5

Sea-Haven
Mentor
Mentor

Like other post, layer "make" sets current layer to the one just made, so no need to set it. A hint you can chprop SS.

0 Likes
Message 4 of 5

ВeekeeCZ
Consultant
Consultant
Accepted solution

Look at this command-line listing... I located for you the issue to fix.

 

image.png

HTH

0 Likes
Message 5 of 5

Anonymous
Not applicable

thank you all
I missed it  ""

0 Likes