Layer state of a single xref

Layer state of a single xref

robert06
Collaborator Collaborator
6,595 Views
6 Replies
Message 1 of 7

Layer state of a single xref

robert06
Collaborator
Collaborator

Copy-pasteing a xref from one drawing to another, layer settings made in the first drawing to the xref are not retained in the other. Could layer settings of a xref be transfered between drawings?

Layer states manage all layers of a file, would like to be able to transfer settings of a single xref.

Accepted solutions (1)
6,596 Views
6 Replies
Replies (6)
Message 2 of 7

ВeekeeCZ
Consultant
Consultant

Set 'VISRETAIN and reload the xref.

0 Likes
Message 3 of 7

robert06
Collaborator
Collaborator

Visretain handles changes made in one drawing, I ment transfering the settings to another.

 

Open Drawing 1 with a xref, change the layer settings of the xref (change the color of all layers to blue etc), copyclip the xref. Open Drawing 2, paste the xref, the layers of the xref are present with the original settings, not coloured blue. How to apply the layer settings for the xref so that they would be the same as in Drawing 1 without affecting other layers?

Message 4 of 7

ВeekeeCZ
Consultant
Consultant
Accepted solution

Then just  save a layer state of xref's layers and apply that in new drawing. Not sure where is the issue.

At Layer State Manager, use the Edit option and remove all other layers from layer state than your xref's. 

Message 5 of 7

robert06
Collaborator
Collaborator

Ok, I've looked past the possibility to edit a layer state, simple as that, thank you.

Is there a lisp to collect a layer state of xref layers with lisp?

0 Likes
Message 6 of 7

ВeekeeCZ
Consultant
Consultant

I'm not aware of any simple enough.

Just found, that you can select some set of layers at Layer Manager, then RT click and at very bottom are two commands for Creating/restoring layer state. It would be awesome it that worked by ones expectations. Unfortunately, it completely ignores the active selection and saves the layer state for all layers.

You can try post it at Autocad's general forum, someone may know some trick.

0 Likes
Message 7 of 7

SteveMazza4062
Advocate
Advocate

@ВeekeeCZ wrote:

Then just  save a layer state of xref's layers and apply that in new drawing. Not sure where is the issue.

At Layer State Manager, use the Edit option and remove all other layers from layer state than your xref's. 


Thanks for the good suggestion.  For some reason, I was unaware that you could save a layer state that applied only to a certain subset of layers within your drawing.  Using this advice, I was able to easily go to the first host drawing, create a layer state of only the layers from the target xref, export the .las file, open the second host drawing, import the .las file, and restore the layer state that affected only the target xref.

One minor point that others should be aware of is that you should uncheck the box "Turn off layers not found in layer state" before importing the layer state, so you can restore it right away without turning off layers you still want.