Jump to content

creat my own tool bar


aryanarch

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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;

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest cad2007
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?

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