AutoCAD Forum
Welcome to Autodesk’s AutoCAD Forums. Share your knowledge, ask questions, and explore popular AutoCAD topics.
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service. To translate this discussion, select the language.

AutoCAD Forum

Reply
Post 1 of 3

Flatten command produced excessive number of blocks

447 Views, 2 Replies
06-25-2015 04:53 PM

I had a floor plan that had multiple Z points in it that caused problems when I tried to draw splines from one to other objects that weren't coplanar. I used the flatten command to flatten the complete drawing. That solved my problem with the spline polylines but the drawing has about 50 blocks that are symbols for electrical outlets. When the drawing was flattened it created a new block definition for every instance of that electrical symbol block and added "-flat-1 thru -flat-39" to them. It did the same to other blocks that had multiple instances as well. Is there any way that I can change them back to their original block names without deleting and replacing all of them?

Post 2 of 3

Re: Flatten command produced excessive number of blocks

06-26-2015 07:35 AM in reply to: mancelp
That's a known problem with FLATTEN in some files: there is no fix to date.
You will need to replace each block individually: Express Tools has that command, and there are dozen free lisps that do it too.


Dean Saadallah
AutoCAD, LT and Architecture User
Blog | Google+ | PINS
Facebook | Twitter | LinkedIn


Post 3 of 3

Re: Flatten command produced excessive number of blocks

06-26-2015 05:14 PM in reply to: mancelp

To replace multiple blocks with same prefix, you can try attached MBLOCKREPLACE.vlx with wildcard block name search option.

To avoid create multiple blocks when flattening a drawing, you can try attached CHZ20.vlx.

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
SMP-right-rail-icon
Find service providers

Connect, consult with, and hire trusted industry experts on the Autodesk Services Marketplace.