mazzetti68
Guest
Good evening to all
I have a small question to ask:
is defined the code to create the purple layer, which I use in the automated design in lsp, along with many others, which often change...but I don't understand one thing...that is how to recall a function within my lsp...
This is the code:
instead of filling my file and messing it up, I wanted to know how to call this function, for example before creating a line, gross to understand:
Can anyone help me?
thanks in advance
Hi.
I have a small question to ask:
is defined the code to create the purple layer, which I use in the automated design in lsp, along with many others, which often change...but I don't understand one thing...that is how to recall a function within my lsp...
This is the code:
Code:
(defun layer-viola
(vl-load-com)
(setq acadobject (vlax-get-acad-object))
(setq activedocument (vla-get-activedocument acadobject))
(setq layertable (vla-get-layers activedocument))
(vla-put-color (vla-add layertable "viola") 6)
(vla-put-activelayer activedocument (vla-item layertable "viola"))
)
Code:
(layer-viola
(command "_line" ....))
thanks in advance
Hi.
Code: