We have a client that has a laser machine that accepts DXF files and then cuts them in layers one after another following their sequential number ordering.
How could he slice a 3D object and have the slices exported to DXF files automatically?
For this purpose, I was thinking it could be nice if something like how the export to SLC command works if it was available to export the contour lines to multiple DXF files.
Hi Roy - I had a script for AI, changed here to write dxf files - it sorts the files in World Z, I don’t know if that is what you need. Run Contour first to get the curves.
There are 20 curves here and they would become 20 DXF files as Rhino is exporting each curve as a single DXF file as opposed to 10 files if all curves in a “layer” of height would export as a single DXF file. is there away to fix it or it requires more developing?
@mahanmotamedi1991 Thank you, I wasn’t sure it would work I was about to try but tried @gankeyu solution before, which has worked for me, but thank you again!
@gankeyu Thank you very much, It works great, thanks for the plug-in and for the GH file! by the way, your plug-in has worked for me in Rhino 6.
@pascal Thank you Pascal too, I managed to get it working with Keyu Gan’s solution.
If your divding distance is smaller than 1, remember to divide the Z coordinate by the distance because I converted decimal number to integers in the example script.