×
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

Inserting/updating multiple blocks?

Inserting/updating multiple blocks?

Inserting/updating multiple blocks?

(OP)
Is it possible so insert/update more than one block at a time?

As you can probably guess, I have several diagrams that share the same 10-15 blocks.  The blocks are stored as separate files (should have just used xrefs?).  I decided to make some changes to the block files, and I would like to update them in my diagrams without having to Insert Block ->> Update ->> Repeat for 15 blocks, then do the whole thing over again for the rest of the diagrams.  Is this possible?

Thanks for your help.

Dave

RE: Inserting/updating multiple blocks?

you could write a script, looks like (untested):

-insert
"c:\\directory name\blockname1"
y
(command)
-insert
"c:\\directory name\blockname2"
y
(command)
etc...

The line (command) acts like 'escape' to end the insert so no picking points & scale but the block replacement should occur. I believe you need the quotes around the path if there are spaces in any directory name.


 

RE: Inserting/updating multiple blocks?

Yes, xrefs would have been the way to go.  You may yet be able to do that - I'll look into it.  In the meantime, just create a script, macro, VB or lisp that steps through a list or folder and does this:

(command "insert" "block=drive:\path\block" "y" "0,0" "1" "1" "0")
(command "zoom" "e")
(command "erase" "l" "")

RE: Inserting/updating multiple blocks?

If you open any one of the base(parent) drawing containing the X-ref(child) drawing and make the change in that child drawing using the REFEDIT command, that change will be also made in the child drawing file automatically.  When you open any other parent drawing containg that drawing you should see that change.

RE: Inserting/updating multiple blocks?

aveZR2,

which ACAD-version are you running? LT?
I know a lisp, which does update all blocks, if they are saved in one path as an own *.dwg.

Lothar

ADT 2004

RE: Inserting/updating multiple blocks?

(OP)
Running AutoCAD 2006.

Thanks for all of the suggestions.

Dave

RE: Inserting/updating multiple blocks?

Another one to look for that we use here, is rib.lsp

I haven't been able to modify it to run with a script routine yet, so you have to click on each block to update, but it's still a lot faster than re-inserting each block one at a time.

RE: Inserting/updating multiple blocks?

A place I used to work had BOM information linked to blocks of components like fittings and relays. That is, if you brought a block into the drawing it automatically updated the BOM.

What I did to avoid bringing the blocks in onesey-twosey was make a block that had all the component blocks in it. Then I brought that block in and exploded it. Now everything was on the BOM.  I picked out the component blocks I wanted as I made the drawing. When finished I deleted the unused blocks and the purged the drawing. Once I purged the drawing the BOM only counted the fittings I used.

I even had all these component blocks on layers so that all 1/2" conduit fittings were on one layer; all 1" fittings on another layer and so on.

 

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