Why is it, when I restore a layer state to a blank drawing, it cannot load the linetypes saved to those layers? I get an error that says Linetypes not loaded and then wind up with a full set of layers all with CONTINUOUS linetype.
If I bring in a block from a toolpalette that has a new linetype and layer, it will create them for me just by inserting the block. Am I missing something??
Well, yes. Layerstates do not contain Linetype definitions, and can only restore/set a linetype current if it currently exist in the drawing.. They are included in blocks, because the entities in those blocks reference the linetyes.
Given the propensity for things (dgn linstyles, annoscales, et) to propogate out of control for a version or so, I'm not at all sure I want layers states to blindly drag in new layer defintions....
I can drag a blank drawing that contains all the layers and linetypes I need to a tool palette, no geometry whatsoever, and can then insert it into another drawing bringing all the layers with linetypes into that drawing. Just seems odd that the layer states manager cannot do the same.
No, just looking for an easy way to restore layers. We bring in lots of outside drawings and blocks and so we purge our drawings rather often, we just needed something to restore our base set of layers when necessary. The block works but I just figured the layer states manager would do the same thing.
1. Create a block with all the linetypes and layerstates you require.
2. Place block in your template, then erase and save.
3. Save the block in conventient location for Design Center to find it without opening 11,000 folders.
4. After -PURGE, go into DC and click on the block with all your layers adn layerstates defined and right click to "redefine only" to current drawing.
5. Linetypes and saved layerstates will be restored and property settings of all layers in current drawing will be back to their previously saved settings.
This actually sounds more complicated than what the procedure really entails. It takes me only about 20 secs to do steps 4 & 5 for each drawings. Setting up steps 1-3 takes about 10 minutes.
Pretty much what I did Steve, except I saved it to our toolpalette instead of using Design Center. (That doesn't get used much around here) I just really found it odd that in AutoCAD, where you can do pretty much anything 3 different ways, you can't with layers. What I really wanted to do was save the layer state to the tool palette but that's an AUGI wish list item I guess...
Buen dia,
Lo que sugiero es cargar los tipos de linea acad.lin mediante un lisp en el archivo DWG antes de ejecutar el Layerstate.
Esto nos permitira que el comando layerstate reconozca los tipos de linea sin problemas.
Saludos