Jump to content

Recommended Posts

Posted

hi..

i have some lisps every time i need them.. i want those lisps loading when i open auto cad. and how i creat a tool bar with icons for those lisps..

thank u.

  • Like 1
Posted (edited)

Your Customization Guide covers the creation of toolbars. Refer to the chapter entitled User Interface Customization. Another source of information is Michael's Corner, a monthly feature of CADTutor, written by Michael Beall. Click on the button above. Note that there is an archive of all past columns written by Mr. Beall that can be accessed as well.

Edited by ReMark
Posted

Creating a new toolbar in AutoCAD 2007

 

Type CUI at the command line then press Enter.

 

On the Customize tab, under the heading, Customization in All CUI Files, right-click on Toolbars and on the flyout select New then Toolbar.

 

Notice that a new toolbar [Toolbar1] has been placed at the bottom of the Toolbars tree (left-hand pane).

 

Enter a new name. Let’s call ours MyLisps. Click off to the side in a blank area. MyLisps has been added to the tree.

 

Click on the toolbar MyLisps and update the Properties in the left-hand pane. Properties that you can change are:

 

-Description

-Default Display

-Orientation

-Default X location

-Default Y location

-Rows

-Aliases

 

Example. For Descriptions you might type: My custom lisp routines.

 

Example. For Aliases you might type: TB_MyLisps,ML

 

Any new commands you created can now be dragged and dropped onto your toolbar.

 

When done click on Apply then on the OK button. AutoCAD will pause to incorporate the changes you have just made and when you are returned to your screen the new toolbar will be visible. It will also be listed in the Toolbar menu when you right-click at the edge of any toolbar.

Posted

Please don't eMail me directly asking the same question.

Posted
Please don't eMail me directly asking the same question.

 

He got you as well eh...

Posted

Guess I wasn't on the mailing list.:lol:

 

Yeah!:D

 

You guys get all the fan mail.:P

Posted

You may be more of a button user the command line but one other thing to have AutoCAD automatically start with lisp routines loaded:

 

Command line: appload

go to contents.

find your .lsp's you want to have loaded at startup and add them.

 

You will need to do this anyway if you plan on using your lisps from a custom made toolbar.

Posted
You will need to do this anyway if you plan on using your lisps from a custom made toolbar.

 

if you only use toolbar buttons try something like this:

 

 ^C^C(load "c:\\location\\filename.lsp");lispprogramname;

Posted
if you only use toolbar buttons try something like this:

 

 ^C^C(load "c:\\location\\filename.lsp");lispprogramname;

Don't forget to account for the routine already being loaded. Won't hurt anything, but why load what's already there?

eg.

^C^C(or c:NAME (load <FileLocation> nil));NAME

You could also use (if (not, but I just like (or.

 

Oh yeah, Reese, you should read this link about load/autoload (to avoid errors).

http://www.cadtutor.net/forum/showthread.php?47364-Repeating-a-command-on-different-files-...ehm&p=322010#post322010

Guest cad2007
Posted
Creating a new toolbar in AutoCAD 2007

 

Type CUI at the command line then press Enter.

 

On the Customize tab, under the heading, Customization in All CUI Files, right-click on Toolbars and on the flyout select New then Toolbar.

 

Notice that a new toolbar [Toolbar1] has been placed at the bottom of the Toolbars tree (left-hand pane).

 

Enter a new name. Let’s call ours MyLisps. Click off to the side in a blank area. MyLisps has been added to the tree.

 

Click on the toolbar MyLisps and update the Properties in the left-hand pane. Properties that you can change are:

 

-Description

-Default Display

-Orientation

-Default X location

-Default Y location

-Rows

-Aliases

 

Example. For Descriptions you might type: My custom lisp routines.

 

Example. For Aliases you might type: TB_MyLisps,ML

 

Any new commands you created can now be dragged and dropped onto your toolbar.

 

When done click on Apply then on the OK button. AutoCAD will pause to incorporate the changes you have just made and when you are returned to your screen the new toolbar will be visible. It will also be listed in the Toolbar menu when you right-click at the edge of any toolbar.

 

 

i have created the Toolbar...And i am created the Subtool bar also depending upon my main created tool bar.Here how can i insert my codes?and alias hw to mention for the codes?

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