Bulk Block insert Replace/Redefine

Bulk Block insert Replace/Redefine

Anonymous
Not applicable
1,103 Views
3 Replies
Message 1 of 4

Bulk Block insert Replace/Redefine

Anonymous
Not applicable

I have exported ALL the blocks from a drawing into folder c:\dwgs and then fixed each one.  Now I want to reinsert those fixed blocks back into the drawing so that it REDEFINEs them all  at the same time.  Any ideas on a routine that would looks at this folder and use just those items?  Not looking to consolidate just one-for-one replace/redefine.

0 Likes
1,104 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

I may have found a solution in another thread...

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/redefine-mass-blocks/m-p/5821893

 

testing it now.

0 Likes
Message 3 of 4

Anonymous
Not applicable

The file from the other discussion is attached. 

 

Here are my results... This works for 90% but some blocks it fails to update/redefine properly. 

 

My fixed block is created all on Layer 0 with Color/Linetype Bylayer.  However, when I insert/define the block the text doesn't update and assume the layer color properties like it should.  Snap17 is results of using the routine, Snap18 is the results of inserting from scratch in blank drawing.  Not sure why this would happen this way.

0 Likes
Message 4 of 4

3wood
Advisor
Advisor

You can also try BLOCKUPDATE.

 

0 Likes