Agreed. I've just had far greater issues to deal with, and it irks me to
have to write the code to fix the obvious problem.
However, it is sort of self-defeating to try it. Here is why:
Let's say I have these constructs: Arch1 (client-provided), HVAC1, and
Power1.
So I open HVAC1, and drop Arch1 in there. It comes in as an overlay, so I
need to change the layers for Arch1 to display grey, or change the Display
Rep for it to be screened (oh, wait, what if I need RClg to plot
differently?).
I have to do the same thing for Power1. Rinse and repeat for the dozens of
plan drawings in a decent project.
Now, let's get to View drawings. I have to do the same thing I did for the
constructs. Blech. This seems really familiar.
Now, let's get to the Sheet drawings. Yet more of the same.
So the code *could* see if the current drawing is a construct, see if XRefs
are there that are also constructs (overlays), screen them. Heaven forbid if
we want to display/plot certain layers/constructs differently than the rest
of the architectural stuff (think RClgs in HVAC, hmm). Then the same code
needs to, at the View level, now work with attached XRefs from the construct
layer (doable). Then we can finally get to the Sheet drawings, where we can
have the code run as you envision.
--
R. Robert Bell
"Doug Broad" wrote in message
news:5417054@discussion.autodesk.com...
Hi Robert,
You're right. Unfortunately, each xref's layers are brought into the target
directly from
the most deeply nested xref. It shouldn't be difficult to clone the layer
settings from
the least nested xref (the view) though, using objectdbx. Probably an hour
of coding.
Sorry we didn't have more time to talk at AU. Perhaps in the future.
Regards,
Doug