Rhino Script - Batch Import DWG

Hi All,

I am trying to chase down a script for batch importing a folder repository of DWG files, where on importing each file it will assign all the geometry in that file to a layer named the same as the DWG file being imported.

Any assistance greatly appreciated!

Cheers,
Michael

BatchImportDWGToLayers.py (2.3 KB)

1 Like

Many thanks @Kalpit_3d & @Helvetosaur that is exactly what I was after.

Cheers,
Michael

Hi, nice script but now all the files/drawings are on top of each other.
All are on 0,0
I have 400 dwg’s to import

Yes, the script does nothing about placement, it was not designed to do anything except batch import files, leaving the geometry where it was originally in the file being imported.

You will end up with 400 layers then, each one has the stuff from the original imported file.

If you want something that will automatically move/nest geometry as it is imported, that is a totally different subject. Most people do not want their geometry moved.