Jump to content

Lisp to toolbar


fleagle8t

Recommended Posts

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:)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

 

CES-pulldown.PNG

 

I'm not about to make button images for all this crap.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

In the CUI create a new Command using a macro as shown in post #3; drag it to the appropriate Menu or Toolbar

j1.jpg

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...