Can I import a file without it turning on all layers?

When I am working in a file with specific layers off and then import a file, all of the layers turn on. Is there a way to keep the layers off upon import? Thanks!

Hello- does the incoming file share layer names with the current file?

-Pascal

Yes, it does. I often import files that use the same template as the file I am importing into.

before importing you can use
_layerStateMananger
to save the current layerstate (on,off, looked…)
then import
then restore the previous layerstate

kind regards -tom

Thank you so much! I was not aware of this command. I figured Rhino’s default is to turn on all layers but I didn’t know a way around it.

LayerStateManager is a good way out. Rhino turns on layers that are on in the incoming file.

-Pascal