Jump to content

Recommended Posts

Posted

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.

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

1.JPG

2.jpg

Posted

Whenever you use the menu its beter (as I think) to load the lisp through menu itself, Its better than using LOADAPP

see Attached

LispMenu.png

Posted

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

Posted

No problem, you are welcome! :wink:

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

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