Autodesk Technology Managers Forum
Share your knowledge, ask questions, and engage with fellow CAD/BIM Managers.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

custom toolbars running lisp

8 REPLIES 8
Reply
Message 1 of 9
Anonymous
359 Views, 8 Replies

custom toolbars running lisp

I'm looking for a way to make a custom tool bar run lisp programs. I'm using AutoCAD 2006 land development. The custom lisp I'm writing will be on a hard drive on the server where every tech can get it. I want the tech's to have the same toolbar on there station.

So how do you implement customization?

Cooking Homer

I don't have a clue with this version (2006).
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Anonymous

read a little here and see if this helps...
http://autodesk.blogs.com/between_the_lines/files/GD11-3L.pdf

I don't do toolbars anymore, but the palette system in ADT.

Otherwise you need to read about the CUI to do the toolbar thing
start here and go fromt here"
http://autodesk.blogs.com/between_the_lines/2005/08/customizing_the.html



wrote in message news:5088376@discussion.autodesk.com...
I'm looking for a way to make a custom tool bar run lisp programs. I'm
using AutoCAD 2006 land development. The custom lisp I'm writing will be on
a hard drive on the server where every tech can get it. I want the tech's
to have the same toolbar on there station.

So how do you implement customization?

Cooking Homer

I don't have a clue with this version (2006).
Message 3 of 9
ryanmcin
in reply to: Anonymous

It's been a while since I've done this, but try the following:

Keep in mind I did this in ACAD 2002, not sure if 2006 is the same.

1. Create the lisp.
2. Either place it in a directory that is in your "support file search path" listing, or add the directory that it is in to your "support file search path".
3. Create the toolbar.
4. Add the button for the lisp.
5. In the marco for that button type the following:
(LOAD "lispname") commandname
Message 4 of 9
Anonymous
in reply to: Anonymous

yes that looks good. I was thinking along those lines. I haven't done macros in a long time and I haven't use one to load and start a lisp. Is there a conditional statement in a macro that checks if a lisp is already loaded and just run the commandname. May it doesn't matter if it reloads every time you click the button.

Thanks
Cooking Homer
Message 5 of 9
ryanmcin
in reply to: Anonymous

I just force the load everytime, it doesn't hurt anything. You could also have the lisp load on startup and just have the macro execute the command.
Message 6 of 9
Anonymous
in reply to: Anonymous

Homer,

I have attached a PDF file that has a basic explanation of creating a new
toolbar in 2006. You will need to create a new toolbar and create a new
toolbar button for it. For the toolbar button, you can use the following
code and substitute the name of the program. The following button will check
to see if a function named MYFUNCTION is loaded. If it is not, then it will
load the program named MYROUTINE which contains the function named
MYFUNCTION. It will then run the function named MYFUNCTION.

^C^C^P(if(null c:myfunction)(load "f:/common/2006
routines/myroutine")(princ));myfunction;

With this process, each person would need to add the button to their own
Main CUI file. You can also create a new toolbar that can be loaded by each
user and then they would use CUILOAD to load a partial CUI file. That is
another process and a little more involved.

Hopefully, that helps you.

--
Douglas Bowers, AIA
Director of CAD Technology
Autodesk Architectural Desktop Certified Expert
Bloodgood Sharp Buster Architects and Planners


wrote in message news:5088376@discussion.autodesk.com...
I'm looking for a way to make a custom tool bar run lisp programs. I'm
using AutoCAD 2006 land development. The custom lisp I'm writing will be on
a hard drive on the server where every tech can get it. I want the tech's
to have the same toolbar on there station.

So how do you implement customization?

Cooking Homer

I don't have a clue with this version (2006).
Message 7 of 9
Tom Smith
in reply to: Anonymous

>Is there a conditional statement in a macro that checks if a lisp is already loaded and just run the commandname

Put an autoload statement in your mnl file, or elsewhere in your startup, then just call the command in your macro.
Message 8 of 9
Anonymous
in reply to: Anonymous

Thanks Doug.

I was looking for just that kind of information. I have created my first toolbar with your help and it works great. I had to change the direction of the slashes to make mine work. "F:\routines\myroutine" to make it work. I know the ^C^C means to clear what ever commands you might already be in but what does the ^P do for you?

Thanks again
cooking homer
Message 9 of 9
Anonymous
in reply to: Anonymous

I'm glad that helped.

The ^P keeps the menu syntax from being displayed at the command line. It
just makes it a little cleaner. You won't have any problems if it is left
out.

Doug


wrote in message news:5091227@discussion.autodesk.com...
Thanks Doug.

I was looking for just that kind of information. I have created my first
toolbar with your help and it works great. I had to change the direction of
the slashes to make mine work. "F:\routines\myroutine" to make it work. I
know the ^C^C means to clear what ever commands you might already be in but
what does the ^P do for you?

Thanks again
cooking homer

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report