Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

ggtoutounji
2876 Vistas, 5 Respuestas

AutoCAD - Insert xref with a specific layer state into another drawing

Hello,

I have saved a drawing with a named layer state. I insert it into another drawing, eve blank one, but it is not inserted with the layer state I saved it at. How can I do that?

 

Thanks.

 

[ The subject line of this post has been edited to include the product name by @handjonathan ]

1wildwes
en respuesta a: ggtoutounji

In the original drawing, put the xref on a specific layer, preferably a layer only used for xrefs, like C-XREF. Set your layers as desired. Set your current layer to 0. Save the drawing. Save the layer state in the Layer Manager. Export the layer state. In the other drawing, set your current layer to 0. Xref in the subject drawing. Put that xref on the same layer it's on in the original drawing. Import the layer state. In model space, in the layer manager select the layer state and restore. Restore the layer state twice. Regen all. Your layers should display as desired.

ggtoutounji
en respuesta a: 1wildwes

Hello Wescorr,

Thanks for the response but it is not very clear to me. Which one is the original drawing? Is it the one xref is inserted into? I have set a layer state in the xref file. I need this layer state to apply for the xref only when it is inserted in the other file.

Thanks.

pendean
en respuesta a: ggtoutounji

change VISRETAIN variable in the top file and try again.
ggtoutounji
en respuesta a: pendean

Hello,

What should visretain be: 0 or 1?

The inserted xref has another xref (let's call it xref1) inserted in it and it has a large number of layers. I created the layer state in xref (not xref1) but all the layers that were targeted belong to xref1. I want that layer state to apply when I insert xref into the main drawing.

thanks,

ebroekere
en respuesta a: ggtoutounji

0

it worked for me finally!