Set Layer to receive import

I have several different igs files that have single objects in each of them.
When I import Rhino creates a layer called ‘IGES level 0’ and places the object on that layer.
Any time I import any of the different objects from different igs files it always goes into the same ‘IGES level 0’ layer. I know I can simply hide existing objects on the ‘IGES level 0’ layer then move the newly imported object file into a new layer, but - I was wondering if there was a way to change this default behavior.
I’ve tried locking the ‘IGES level 0’ layer and setting another prenamed layer as active before importing,
but it still goes to the ‘IGES level 0’ layer.

Hi -

There are no settings to change the default behavior, no. Importing an IGES file will read the layer name from that file. If you can’t influence the file-writing process, I suppose you could script the creation of layers based on some rule…
-wim

Thanks

@BabaJ

As Wim said, you cannot prevent the default behavoir. You can use the script below to batch import all .igs or .iges files in a selected folder and put the objects in each imported file on a separate layer with the imported file name as the layer name.

BatchImportIGESToLayers.py (2.4 KB)

Thanks