Here is the way I process (simplified version), the goal is to have a alphacam-like GH definition processing 2D dxf files using iformations from the geometries and their layer names (Elefront needed):
-
I insert (no import) the dxf files in a new rhino document (drag and drop from explorer is my fastest way…) I’d prefer make this by script or with grasshopper, but I don’t know how to do that for now… The insert is made “by group”, not “blocks” (if someone has an idea you’re welcome) I keep the file name for creating the group name
-
My definition keeps the dxf filename to give it to the export file (with a helpful python script I found in this awesome forum), and sorts the files by type (it’s for stair parts cnc processing)
-
In my definition, the goal is to export a text file (I use a cnc extension .cix for Biesse machines), but once the geometries sorted you can proceed what you want on it and export in the file format you need
I only import 22 files maximum at once (it can be extended), for speed process reasons.
You can try whith my dxf files, because of the layer names, you will have an idea of the way it works. Hope this will help.
DXF IMPORT AS GROUPS.gh (39.0 KB) 1_Limon1Gche.DXF (23.9 KB) 1_Mar2.DXF (3.5 KB) 1_Mar6.DXF (3.5 KB) 1_Mar14.DXF (3.8 KB)