I'm not that familiar with lman but I'm
skeptical of future support since it is
not core acad & I don't want to base our
long term standards on that. The newer
version should theoretically fix your
problem, you will need to pay for
express tools separately with a2ki. A
lisp solution can be very easy &
absolutely guarantee results if you can
pin down visibility issues with layer
names. Automating color is probably not
so easy to be flexible. Here's a sample
of what I use, it just spits out
wildcard keys as you would at the
command line so it's not dependant on
the lisp, that just makes it easier:
;LAYER CODES
;Planting, Layout, Grading, New,
Demolition, Irrigation, Masterplan,
Electrical, Other
;*-X,
*-P-*,*-L-*,*-G-*,*-D-*,*-I-*,*-M-*,*-E-*,*-O-*
;N-*
;N- -only NEW layers
(Defun c:N- ()
(Command "_.layer" "of" "*" "" "on"
"N-*,*|N-*" "")
(prompt "new layers on only")
(princ)
)
;DEMO -only demolition layers
(Defun c:DEMO ()
(Command "_.layer" "set" "-d-txt" "on"
"*" "of"
"*-X,*-P-*,*-L-*,*-G-*,N-*,*|N-*,*-I-*,*-M-*,*-E-*,*-O-*"
"on" "*-D-*" "off" "*-x" "")
(prompt "demolition layers on only")
(princ)
)
;LAYout -only layout layers
(Defun c:LAY ()
(Command "_.layer" "set" "-L-txt" "on"
"*" "of"
"*-X,*-P-*,*-G-*,*-D-*,*-I-*,*-M-*,*-E-*,*-O-*"
"on" "*-L-*" "off" "*-x" "")
(prompt "LAYOUT layers on only")
(princ)
)
chertok22 wrote:
> Paul - Thanks for the reply.
> Can you explain a little more by what
> you do with layer manager when you
> have xrefs inserted into a new
> drawing? You said you have noticed
> lman undoes layers completely
> including re-namings. Does this mean
> that there is no way to use layer
> manager from drawing to drawing?
>
> If I set up a layer state in a drawing
> and then insert that drawing into
> another, will the layer states from
> the original be able to be used in the
> new drawing? Is there a way to move
> layer states from one drawing into a
> newer drawing without inserting
> it...etc etc
>
> My current problem is essentially a
> cosmetic one. I make a drawing and
> xref it into a plot sheet. I plot the
> plot sheet and realize that I want a
> layer to read lighter than the color
> it has originally been asssigned. I go
> back to the original drawing to fix
> this layer's color to a lighter color
> (so it will be available for other
> plot sheets that reference this
> drawing) but have to turn off
> visretain in order for the plot sheet
> to accept the new color for that
> layer.
>
> Visretain off loses all the original
> layer freezes, so I go back in and
> freeze what I do not want to show up
> once again.
>
> I don't want to use a lisp, because it
> may be that I add new layers in the
> original and don't want to hassle with
> lisp and lisp updates.
>
> I'd love to solve this and/or
> understand it better.
>
> Thanks,
>
> Jonathan