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

quickly insert arrow director on layer

  • Thread starter Thread starter jim78b
  • Start date Start date

jim78b

Guest
exists a lisp that creates the arrow(leader) puts it on the xxx layer, in my case am_5 and then returns sulayer 0?
Thank you.
 
I already know that system . I was wondering if there is a lisp that from command line starts the director on the am_5 layer and then returns to the previous one .I now use :le
 
(defun c:ql(/ pt1 pt2 txt clayer)
(setq clayer (getvar "clayer"))
(setq pt1 (getpoint "\punto inserimento"))
(setq pt2 (getpoint pt1 "\punto per testo"))
(setq txt (getstring "\ntesto: "))
(command "_layer" "_m" "am_5" "")
(command "_leader" pt1 pt2 pt2 "" txt "")
(command "_layer" "_s" clayer "")
)

ci sono altri metodi per ottenere lo stesso risultato, questo è semplice.
 
Hi thank you I tried but it does not work properly, I explain, I usually do: I click the first point then the second, sometimes I click the first, the second and the third then I press esc because the text I never put it. something does not work as if I do the...

then in a design that is not my model the am_5 layer is white , it should be on color 100.

I'm sorry if I remove that, thank you for giving time. . .
 
(defunc c:ql2(/ pt1 pt2 clayer)
(setq clayer (getvar "clayer")
(setq pt1 (getpoint "\ insertion point"))
(setq pt2 (getpoint pt1 "\point for text"))
(command "_layer" "_m" "am_5" "_c" 100 """)
(command "_qleader" pt1 pt2 ")
(command "_layer" "_s" clayer ")
)

before using the command start qleader, setting, annotation type: none.
press esc is equivalent to interrupting the execution of a lisp program.
 
(defunc c:ql2(/ pt1 pt2 clayer)
(setq clayer (getvar "clayer")
(setq pt1 (getpoint "\ insertion point"))
(setq pt2 (getpoint pt1 "\point for text"))
(command "_layer" "_m" "am_5" "_c" 100 """)
(command "_qleader" pt1 pt2 ")
(command "_layer" "_s" clayer ")
)

before using the command start qleader, setting, annotation type: none.
press esc is equivalent to interrupting the execution of a lisp program.
Okay, I thought it was going right now, so I'm gonna use the tool palette that puts it on the right layer.
amnote gives me problems, in the sense that I work with set the layer 0 and color: from block and every time I make a line with amnote it makes me white and not the color of the layer.
 
set qleader is only the first time, then the ql2 command can use it as many times as you want.
But did you try or not?
 
strange because in color settings there is byiso or the color of the am5 layer but always makes them white byblock
 
go to change quota, selections director, card line, color fantasy
then use the qleader command
 
go to change quota, selections director, card line, color fantasy
then use the qleader command
ok thanks .vedo cmq that with the tool palette the procedure is faster .creo a new command and selez the right layer so every time it returns to layer 0.
 
with this lisp, which must be loaded once (you can put it in the acaddoc.lsp), when a director is drawn (leaving the keyboard command, button, etc.) this is placed on the am_5 layer, while the current layer is maintained.

notes:
- presupposes the existence of the am_5 layer (but any creation can be foreseen);
- the lisp initializes the reactors, may no longer work the ones created by your application, but just reopen a dwg without launching this lisp
 

Attachments

Forum statistics

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

Members online

No members online now.
Back
Top