[Search tip detail and code files using keywords, tip number, author name, etc ]
Macro: Turn On and Thaw All Layers
Tip# 3788 By Daniel Jurado On 04-Dec-2011
Rated By 0 users
Categories : Misc. User Tools
Software type : AutoCAD Mechanical, AutoCAD Map , AutoCAD Land Desktop , AutoCAD Electrical , AutoCAD Civil 3D , AutoCAD 2012
Rename File To : No Files to download.
This macro ensures everything is turned on, visible, and refreshed.

Tipster Daniel Jurado created a macro to tidy up AutoCAD Civil 3D and AutoCAD Map files, but his tip should work in all versions of AutoCAD.

"This is a macro I made for one of my tool palettes. I believe it will work with all versions of AutoCAD, as it uses commands straight out of the box. The macro thaws all layers, turns on all layers, sets the current layer to zero, unlocks all layers, zooms extents (to force a regen), then zooms previous to leave you in the same spot as before."


Notes from Cadalyst Tip Patrol: This macro will ensure everything is turned on, visible, and refreshed. The zoom extents then zoom previous simply zooms out, then back again. This forces AutoCAD to perform a screen regen, smoothing all of your linework. This would be a good macro to run before you save and close a file, or when you open a file from a third party.


Average Rating:

User comments
Comment by Cooper,Kent
Posted on 2012-01-31 09:03:00
The two Zooms can be avoided by simply doing an explicit REGENeration: ^C^C-LA;T;*;ON;*;S;0;UN;*;;REGEN