Hi Tim,
I tried the code "SetOrigLayerProps" on Autocad 2006 & Autocad 2008.
In 2008 I changed the line.. (if (< (atoi (setq oVer (substr (getvar "acadver") 1 2))) 16)..from 16 to 17.
I tried using the code on the plot sheet and it gave me this error:..
Single layer, or All layers <S>:
Select object within Xref to copy back original layer properties: error:
Automation Error. Key not found
Then it made the parent xref a read only file. But you what. This can serve as a sample coding for me.
Thanks for the link.
And Ron (sorry, did I get your first name right?), setting visretain to 0 will not work. The parent xref also has
parent * nested xrefs. The Plot sheet will reflect the 2nd level set of xrefs (the ones being xref into the parent xref).
What I am trying to say is that with visretain set to 0, Plot sheet will update to layer settings of the "xrefs"
of parent drawing NOT the layer settings of "parent" drawing. Whoo! I hope you understood what I just said.
Thanks again guys,
Robert