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
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?
-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?
(command "insert" "block=drive:\path\block" "y" "0,0" "1" "1" "0")
(command "zoom" "e")
(command "erase" "l" "")
RE: Inserting/updating multiple blocks?
RE: Inserting/updating multiple blocks?
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?
Thanks for all of the suggestions.
Dave
RE: Inserting/updating multiple blocks?
try this lisp:
ht
Rename to "block-upd.LSP" -> _appload -> start with "all-block-upd" -> browse to the folder with the library-blocks...
Lothar
ADT 2004
RE: Inserting/updating multiple blocks?
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?
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.