I have some legends that contain many layers and I'd like to clean them out. I would like to change all of the linework in the legend to layer 0, but have it retain the color, linetype and lineweight that it currently has. Does anyone know of a lisp that could do this?
That put all of the linework on layer 0, but it didn't hold any of the colors or linetypes.
What you want to do sounds good but the legend should have the same structure as the symbols in the drawings (layer, color, linetype, etc.). In general all properties of all objects should be bylayer. Objects internal to blocks that should inherit the block properties should be set to byblock. All appearance control should be done by layering. What you are doing is taking a large step backward in terms of standards.
I leave it to others to let you accomplish this step backwards more easily.
@jbear0000 wrote:
That put all of the linework on layer 0, but it didn't hold any of the colors or linetypes.
Hmmm -- It was working at the time I posted it back then, but I'll have to investigate,,,,
EDIT: Meanwhile, you could try out some of the other routines on that same thread, which may do it for you.
FURTHER EDIT: I just tried it, and it's still working for me here. I'm on an older version, though -- I'll have to try it again when I get to where I have Acad2015. I'm not sure what about it might be version-dependent, except for the block-name part that's already dealt with.
dboard, Don't tell me how to do my standards and drafting, there are reasons we want to do it this way, which I have no need to explain. If you can't offer help with the question I am asking, don't respond.
You can try attached CHZ20.vlx, which can changed everything inside a block to layer 0 while retain subentities' own color and linetype. But it is not able to retain the lineweight.
Settings as below:
Steady on lad. People are here volunteering to help; the help offered may not be *exactly* what you are after but is still helpful. dbroad is one of our best, long term contributors and his advice is sound. You may have reasons for doing things this way but you didn't elaborate on those reasons (or even the fact that you are restricted to doing it this way).
I agree with dgorsman, the Forums is for discussion, we welcome different ideas. Sometime although an idea seems not the direct answer, it may inspire a new solution.
Hello from France
Maybe you could use this french VLisp routine (from Patrick_35) "RB_Zero" which send "back" to Layer ZERO all block's entities without editing Color, Linetype, Lineweight ...
But you can easily edit the routine at lines 100 / 103 / 106 to do more ...
I hope "RB_Zero" can help you ...
Patrice BRAUD
Can't find what you're looking for? Ask the community or share your knowledge.