add lisp routine to tool palette

add lisp routine to tool palette

Waseem.MikhaelPLELV
Contributor Contributor
4,095 Views
6 Replies
Message 1 of 7

add lisp routine to tool palette

Waseem.MikhaelPLELV
Contributor
Contributor

hello everyone, 

 

I have been searching almost everywhere but unfortunately I didn't get what I'm looking for. I hope I can get the answer here. However, I'm making my own custom Tool-Palette and I need to insert or add my lisp routine in there, 

I searched and all I got is to insert into too palette but I also need to app-load the lisp in order to run it.

I want to add the lisp file so once I click the Icon it runs the command without app-loading it each time. 

this custom ToolPalette will be shared with my colleague at work as well. 

if someone can help me with this I would really appreciate it, if there would be any tutorials or pdf file or screen video shows the correct way to have it. 

thank you in advance. 

 

0 Likes
4,096 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend
0 Likes
Message 3 of 7

Waseem.MikhaelPLELV
Contributor
Contributor

@pendean thank you for the reply, I appreciate that. 

for the link and youtube below for adding a lisp into tool-palette, these what I have followed before and I did added the lisp into my tool-palette but the problem I'm having it is that I have to appload the lisp each time, which I thought that I can run the lisp from tool-palette without apploading it. 

looking for your advise. 

thank you

0 Likes
Message 4 of 7

Moshe-A
Mentor
Mentor

@Waseem.MikhaelPLELV ,

 

AutoCAD gives us numerous ways to load lisp files:-

 

1. you can use acad.lsp and (autoload) function or appload to autoload lisp files each dwg is opened.

2. you can load the lisp just before you use it.

 

read about all these in the autolisp manual reference

 

Moshe

 

0 Likes
Message 5 of 7

Waseem.MikhaelPLELV
Contributor
Contributor

@Moshe-A what I'm looking for is to add the lisp into my Tool-Palette without applading the lisp each time

that mean I can run the lisp through the Tool-Palette.

is there a way of doing that?

0 Likes
Message 6 of 7

pendean
Community Legend
Community Legend

This is how to autoload LISPs for use all the time in all sessions, method #2 is what you want to do http://www.lee-mac.com/runlisp.html

0 Likes
Message 7 of 7

Moshe-A
Mentor
Mentor

@Waseem.MikhaelPLELV ,

 

is suggest you explore acad.lsp and appload starup suite and understand their power. in tools palette macro you can call a lisp function and in that lisp function you can load a lisp file but more simple way is acad.lsp/appload

s

 

Moshe

 

0 Likes