Tip 2249: Force All to Layer Zero Force All to Layer Zero comes from a Hot Tip Harry Discussion Forum guru, Leonid Nemirovsky. Other functions out there let you change layers, but this one goes one step further by attaching the original layer as extended data to the entity object. The attached information then can be used to undo the layer change. Using this utility set is easy. An associated DCL file should be placed in an AutoCAD folder. Load the LISP code and type XD. A dialog box appears with the option for you to name a layer. If nothing is supplied, then layer 0 will be used. Select the Attach Layers option to shift all the entities to the same layer. Select Restore Layers to reverse the process using the extended data to restore the original layer settings. Here's a tip of the hat from Harry for delivering yet another interesting solution for all. Thanks, Len! |