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!

Button Macro to insert blocks 1

Status
Not open for further replies.

STANOONE

Civil/Environmental
Aug 8, 2005
3
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


 
Replies continue below

Recommended for you

If you set the FILEDIA system variable to zero, does that help?
 
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
 
Thanks smcadman

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

Thanks again


Stanoone
 
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
 
Exxit said:
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
 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor