sadhu Posted April 20, 2010 Posted April 20, 2010 How can I start autolisp routines from the menu bar? I tried using CUI but could launch only macros and short lisp commands. How can I call lisp routines from a menu bar or maybe a tool palette ? Thanks. Quote
MarcoW Posted April 20, 2010 Posted April 20, 2010 How can I stat autolisp routines from the menu bar. I tried using CUI but could launch macros and short lisp commands. How can I call lisp routines from a menu bar or maybe a tool palette ? Thanks. In order to use custom lisp files you should be aware of this: - have the lisp file loaded before the command is executed So, enter "appload" + in the command bar and click on the button "Contents" in "Startup Suite". Add your lisp file in there. Close AutoCAD and run it again. You will probably not notice but the function is now loaded. I assume you have your tool palette or menu ready to go. You need to add a macro to fire up a funtion. (Both the menu and toolpalette do this in the same way.) A macro looks like this: ^C^C^Ptest; ^C^C is double escape key to exit running command ^P is no info on commandbar test; is same as command "test" + . I added some images (in case of toolpalette) to explain better. If you need more help, ask right away. Mind the option "flyout", that should be "No" to add macro's. Quote
asos2000 Posted April 20, 2010 Posted April 20, 2010 Whenever you use the menu its beter (as I think) to load the lisp through menu itself, Its better than using LOADAPP see Attached Quote
sadhu Posted April 21, 2010 Author Posted April 21, 2010 Thanks Marco - It was exactly what I was looking for. Yes my lisps load from the "start up suite". Thanks Asos - I'll look into that. Quote
sadhu Posted April 21, 2010 Author Posted April 21, 2010 Thanks Marco - It was exactly what I was looking for. Yes my lisps load from the "start up suite". Thanks Asos - I'll look into that. Just corrected typos. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.