AutoCAD template is very helpful if you want to start your drawing with predefined setup. You can have all the layers, blocks, layout and all necessary setup right when you create your drawing. It’s not only make you more productive. It helps you to maintain drawing standards as well.
But using template sometimes make your drawings a bit complex. You can have hundreds of layers. And maybe several styles. We don’t use many of them. During the drawing process, we tend to purge the unused objects.
This however, can cause another problem. What if we want to use the layer or styles that has been purged?
The fastest way to restore object from template
There are several ways you can do to restore layers and styles. However, the fastest way is to insert a drawing as block to your current drawing.
Here is the details:
- Copy your template. Rename the new template, change the DWT extension to DWG. As we know already, DWT is actually just an AutoCAD drawing.
- Activate insert block. Browse and find the DWG drawing. Click OK to insert block.
- AutoCAD will insert all defined objects in DWG file (that are the same with in your template).
- When AutoCAD ask you for insertion point, just press ESC to cancel. We don’t need to actually insert the block, we just want AutoCAD to insert all objects within the drawing.
The magic button
Now that you know how to restore the objects easily, we’ll try to make it even easier. We’ll create a magic button to restore the object.
You need to create a custom command. If you are not familiar with CUI yet, you can learn how to create a custom command here.
The macro is simple:
Replace file name with your drawing file name. Very simple, right?
Now one thing you should remember: Place the drawing file name in a folder that’s defined as AutoCAD support File Search Path. If you want to place it in custom location, define the location in support file search path.
It doesn’t have to be complicated
Many great tips are actually very simple, but we never thought about it. Many times we think customization is a difficult and complex task. It doesn’t have to. Do you have a simple customization tip to share? You can write for CADnotes and share your tips to the community!
This tip was mentioned to me by Hai Le (@ThatCADguy) on twitter. Thank you for the great tip Hai Le!
I liked this post very much! But anyways I wonder why wouldn´t there be a purge lock for layers, or something….don´t know.
AutoCAD doesn’t have the lock from purge command. But I posted a workaround how to protect them. You might be interested to read this: How to Prevent AutoCAD Layers and Styles when using PURGE.
Thanks Ed!!, I just read the email about it. I´ll take a look at it!!
i should have full notes of auto cad and more latest command