×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

toolbar button

toolbar button

toolbar button

(OP)
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!   

RE: toolbar button

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources