About leader command

About leader command

saitoib
Advocate Advocate
759 Views
3 Replies
Message 1 of 4

About leader command

saitoib
Advocate
Advocate

Hi all.

Thank you again for your help.


The leader command is completed by specifying the starting point, the next point, and then typing "A" and the text.
Is it possible to use AutoLisp to specify the coordinates at the start point, click the mouse at the next point, type "A", enter text, and pass the text variable?

 

Thank you.

Saitoib
0 Likes
Accepted solutions (1)
760 Views
3 Replies
Replies (3)
Message 2 of 4

devitg
Advisor
Advisor
Accepted solution

@saitoib 

 

try it 

 

(SETQ PT1 '(0 0 0))
(SETQ TEXT "text to leader")
(SETQ OSMODE (GETVAR 'OSMODE))
(SETVAR 'OSMODE 0)
(VL-CMDF "leader" PT1 PAUSE "A" TEXT "")
(SETVAR 'OSMODE OSMODE)
Message 3 of 4

saitoib
Advocate
Advocate

@devitg 

PAUSE, huh?

 

I've solved it.
Thank you very much.

Saitoib
0 Likes
Message 4 of 4

ronjonp
Mentor
Mentor

You can also use "\\" it's a bit more consistent since pause could be redefined by a rogue routine.

ronjonp_0-1630293824570.png

 

0 Likes