Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

toolbar button

Status
Not open for further replies.

cisco808

Civil/Environmental
Aug 14, 2002
7
Hi,(autocad r-14)
Follow-up to my question i've posted earlier (8-15). Can someone show me step by step on how to make a custom toolbar button for the lisp i.e. "textalign.lsp". I need to create a macro, with notepad? what type of extension?, where do I save it?, from here do I put in the support?, How do I retrieve it when I go to view...customize...categories (select icon)...when I "X" the box, will the customize button I created is set to go? Thanks!
 
Replies continue below

Recommended for you

Dear cisco808,
To create a new button to run a command defined in
an autolisp file follow the below instructions:
1. Right click on a toolbar
2. From the context menu select the "Customize"
command
3. In the dialog box activate the "Commands" tab
4. In the "Categories" list select the item
"User defined"
5. From the "Commands" area at the right of
dialog box, select the "User Defined Button"
item and drag & drop it to an empty area of
AutoCAD window (a new toolbar containing a new
button will be created)
6. Click on the new created button (The "Button
Properties" tab in the dialog box will be
activated).
7. In the area "Macro associated with this button"
enter the below expression:
^C^Ctextalign
(The word TEXTALIGN should be replaced by the
command defined in autolisp source file)
8. You can create and save an image for button by
clicking on the related area in dialog box.
In the "Name" and "Description" fields enter
a name and some description.
9. click on the "Close" button.
10. Enter the APPLOAD command.
- In the dialog box click on the "Startup
Suite" area
- In new dialog box click on the "Add" button
and add the textalign.lsp to the list by
selecting its name and path
- Click on the "Close" button
- Click on the "Close" button
Now the file textalign.lsp loads into memory
everytime you start the AutoCAD
11. Click on new created button and the command
"TEXTALIGN" (or another defined command) runs

The new created toolbar can ON/OFF by right-click
context menu on toolbars.

any question?
:)
Farzad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor