LISP for (mass) Block insert from external DWG

LISP for (mass) Block insert from external DWG

Anonymous
Not applicable
893 Views
2 Replies
Message 1 of 3

LISP for (mass) Block insert from external DWG

Anonymous
Not applicable

Dear community,

 

i need a lisp-routine.
This lisp should copy some (nearly 120) blocks from a "static" DWG-file into the current dwg without inserting it into the drawing. the blocks should only copied to the current dwg without user-interaction oder windows for filepath-input.

Cause after i had to change old blocks with the new one (and delete the old ones).

Its the classic requirement: old blocks (think of emergencysymbols) have to change to new design.

Is there an option or anybody can help me?

 

Thanks in advance!

 

regards

 

rs_dev

0 Likes
894 Views
2 Replies
Replies (2)
Message 2 of 3

dennis
Advisor
Advisor

I think I am missing something.  So, asking what will clear up what I am missing.  Why not just copy the source 'static' drawing to a new location and rename?

0 Likes
Message 3 of 3

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....
This lisp should copy some (nearly 120) blocks from a "static" DWG-file into the current dwg without inserting it into the drawing. the blocks should only copied to the current dwg without user-interaction oder windows for filepath-input.

....


The Design Center [ADC command] has an option [right-click on the Block icon] to redefine a Block with the definition from another drawing without Inserting one, but I don't know of a way to automate that for a whole collection of Blocks.

 

You may need to make all those Blocks in the "static" drawing into separate drawing files with WBLOCK [there may be routines around here to do that for you], in some dedicated folder, add that folder to your Support File Search Path list, and use a Block-redefinition routine that will bring in the new definitions [there are routines around here to do that, and possibly even to do it automatically for all the drawings in a specified folder -- try some Searching].

Kent Cooper, AIA
0 Likes