• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

recall a defunct function

  • Thread starter Thread starter mazzetti68
  • Start date Start date

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:
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"))
)
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:
Code:
(layer-viola
(command "_line" ....))
Can anyone help me?
thanks in advance
Hi.
Code:
 
you forgot to define variables and input parameters
Code:
(defun layer-violala [COLOR="#FF0000"][B](/)[/B][/COLOR]

..

)
to recall the function: (layer-violet))
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top