×
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

Button Macro to insert blocks

Button Macro to insert blocks

Button Macro to insert blocks

(OP)
Hi

I wonder if someboy could help

Iwant a button macro for AutoCAD 2004 , so I can insert blocks from my hardrive without bringing the insert dialog box up

In the older visions of AutoCAD I used the following and the block came in

C^C_insert C:/CLAYTON/RIBBLE/FBOX.dwg

If I try this on 2004 it just brings up the insert dialog box

Thanks for any help


Stanoone


RE: Button Macro to insert blocks

If you set the FILEDIA system variable to zero, does that help?

RE: Button Macro to insert blocks

Put the location of the blocks into the ACAD support path: Tools > Options > Files > Support File Search Path > Add > Browse.
Then change the macro to read:

CODE

^C^C-INSERT;FBOX.dwg;\;;;

Note: Make sure there is no "space" after the last apostrophe or it will act as an enter.

Flores

RE: Button Macro to insert blocks

(OP)
Thanks smcadman

I have used your macro and it does just what I want.

Thanks again


Stanoone

RE: Button Macro to insert blocks

Hi,

there's no need for moving the block into the supportpath.
Example:
^C^C_-insert;e:/library/yourblockname.dwg;^Z

Lothar

ADT 2004
ACAD 2002

RE: Button Macro to insert blocks

Quote (Exxit):

there's no need for moving the block into the supportpath.
Example:
^C^C_-insert;e:/library/yourblockname.dwg;^Z
I believe you mis-understand what is being done here; you are merely POINTING to the folders with the blocks, not actually moving the folders.

Besides, if you have different folders for the different blocks you have, such as electrical, structural, etc., you do not have to point your macros to different folders, just put the paths in the "support path".

Flores

RE: Button Macro to insert blocks

smcadman,

ok, You are right. I looked at Stanoon's example ("C^C_insert C:/CLAYTON/RIBBLE/FBOX.dwg ") That's a macro for inserting one and the same block...

best regards, Lothar

ADT 2004
ACAD 2002

RE: Button Macro to insert blocks

If you put a minus symbol ( - ) in front of insert, it supresses the dialog box and the button macro will work just like it used to.

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