Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Active Contributor
john-B
Posts: 48
Registered: ‎09-09-2009
Message 1 of 5 (214 Views)
Accepted Solution

mleader

214 Views, 4 Replies
10-11-2012 05:24 PM

Hi all

I'm trying to write a lisp routine that, when I invoke the mleader command, osmode is set to "nearest" & orthomode is set off. I then would like the original settings to be returned.

attached is what I have written so far:-

Hoping for so help.

Regards

JohnB


devitg wrote:
You need to add so many PAUSE , as need at (command "_mleader" pause pause ..... pause )

Use while

 

(command "_mleader")
(while (> (getvar "CMDACTIVE") 0)
(command pause))

 

 

Mentor
devitg
Posts: 1,705
Registered: ‎03-14-2004
Message 2 of 5 (207 Views)

Re: mleader

10-11-2012 05:43 PM in reply to: john-B
You need to add so many PAUSE , as need at (command "_mleader" pause pause ..... pause )
*Expert Elite*
pbejse
Posts: 2,511
Registered: ‎11-24-2009
Message 3 of 5 (202 Views)

Re: mleader

10-11-2012 06:03 PM in reply to: devitg

devitg wrote:
You need to add so many PAUSE , as need at (command "_mleader" pause pause ..... pause )

Use while

 

(command "_mleader")
(while (> (getvar "CMDACTIVE") 0)
(command pause))

 

 

Active Contributor
john-B
Posts: 48
Registered: ‎09-09-2009
Message 4 of 5 (191 Views)

Re: mleader

10-11-2012 06:55 PM in reply to: pbejse

Thank you both

*Expert Elite*
pbejse
Posts: 2,511
Registered: ‎11-24-2009
Message 5 of 5 (186 Views)

Re: mleader

10-11-2012 07:22 PM in reply to: john-B

john-B wrote:

Thank you both


You are welcome, glad we could help :smileyhappy:

 

Cheers

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.