fleagle8t Posted May 25, 2010 Posted May 25, 2010 Hi Guys, Can someone please tell me how to get a Lisp into a toolbar so that I don't have to load it everytime I start a new drawing?..... I'm kinda new to this so if you could put it in idiot terms, it would be greatly appreciated. Cheers:) Quote
alanjt Posted May 25, 2010 Posted May 25, 2010 http://www.cadtutor.net/forum/showthread.php?t=1390 Quote
lpseifert Posted May 25, 2010 Posted May 25, 2010 Use something similar to this as your macro (if (not c:[color=Red][i]commandname[/i][/color])(load "[i][color=Red]lispfile[/color][/i]" nil));[i][color=Red]commandname[/color][/i]; where lispfile is the name of the .lsp file (be sure it's in the support file path) and commandname is the command used to invoke the routine. Quote
alanjt Posted May 25, 2010 Posted May 25, 2010 Larry did it correctly, but I'm going to post this anyway. Load/AutoLoad Usage Quote
lpseifert Posted May 25, 2010 Posted May 25, 2010 I didn't think about autoload - no need for toolbar button, just type the command name Quote
alanjt Posted May 25, 2010 Posted May 25, 2010 I didn't think about autoload - no need for toolbar button, just type the command name Aside from what gets loaded from the misc lisp file, everything I load is with AutoLoad from my MNL file. Quote
Ryder76 Posted May 25, 2010 Posted May 25, 2010 I like adding buttons in my cui for my lisp routines, then stick 'em on my toolbars. Quote
alanjt Posted May 25, 2010 Posted May 25, 2010 I like adding buttons in my cui for my lisp routines, then stick 'em on my toolbars. I'm a keyboard-man, but I do have this pulldown that loads with our company CUI... I'm not about to make button images for all this crap. Quote
mvrcad Posted May 26, 2010 Posted May 26, 2010 guys i want to do the same thing, but am having trouble following this, i cant see instructions on how to place a lisp routine into a pulldown or toolbar. Quote
lpseifert Posted May 26, 2010 Posted May 26, 2010 In the CUI create a new Command using a macro as shown in post #3; drag it to the appropriate Menu or Toolbar 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.