automate merge layers || flatten layers

automate merge layers || flatten layers

mreavesLXYQU
Community Visitor Community Visitor
889 Views
5 Replies
Message 1 of 6

automate merge layers || flatten layers

mreavesLXYQU
Community Visitor
Community Visitor

My client's AutoCAD Admin maintains AutoCAD files with dozens of layers
My client's AutoCAD Admin would like to automate the merging / flattening of all layers with the exception of 1 or 2 specific layers.
Is there a way combine the "flattening" of layers with the "Save As" method? ...possibly a macro as might occur in a .VBA solution?

Your comments would be greatly appreciated.

890 Views
5 Replies
Replies (5)
Message 2 of 6

WeTanks
Mentor
Mentor

Please check below.

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Merge-AutoCAD-Laye... 

We.Tanks

EESignature

A couple of Fusion improvement ideas that could your vote/support:
図面一括印刷

Message 3 of 6

paullimapa
Mentor
Mentor

one possibility would be to code a lisp function to cycle through every single object including those inside blocks and change the layer to a specific given layer name except the given specified layer names to not change. Then perform several purges to get rid of the remaining layer names that now have no objects on them.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 4 of 6

TomBeauford
Advisor
Advisor

Few things to consider:

1. Properties of objects set to ByLayer - There are a few lisp out there to assign layer properties to the objects on them so they would display and plot the same after being merged to another layer.

2. It would no longer be able to control the display of objects with layers anymore, WYSIWYG!

 

Easy enough as long as you understand the consequences. I use it often for location maps required on cover sheets for project drawing. Rather than adding a bunch of layers I'll convert those location maps to display required objects with correct linetypes, colors & lineweights but with everything on layer 0.

 

There are others who convert them to images to insert as it's easier.

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Likes
Message 5 of 6

paullimapa
Mentor
Mentor
Message 6 of 6

pendean
Community Legend
Community Legend
... and don't forget about CHECKSTANDARDS and LAYTRANS commands, tools that exist for conforming to file format standards.