OpenSCAD and exporting layers

I would like to use OpenSCAD and its Customizer to generate input to Carbide Create (pro). OpenSCAD can export 2D information in several formats that CC can import. However, it would seem that I would need to run OpenSCAD several times with separate exports if I want to then have CC import to different layers. Has anyone dealt with something like this?

For instance, I want to have a user enter dimentions of an object I want to cut. From those dimensions I would calculate the outline that needs to be cut full depth as well as some other parts that need to be cut partially. Ideally these would go to different layers in CC and tool paths could be defined in CC that will set the depth and type of cut. If every path is exported to one SVG file, then I would need to use CC and a lot of mouse clicks to assign things to the correct tool paths.

I could use some sort of shell script or Makefile to do multiple exports with parameters driving the selection of what to export, but then it makes using the Customizer a pain because I need to enter the same parameters again and again.

Any ideas on how to automate multilayer exports?

1 Like

Yes, it’s been looked into, but no, it’s not automatic.

I’ve experimented with this a bit:

and have even worked up a way for Open(Python)SCAD to make colour-coded DXFs:

and it’s come up in the past w/ folks for example, asking for OpenSCAD support on Cutrocket:

The problem is, the intersection of Carbide 3D users and OpensCAD programmers is probably single digits, and I don’t see that changing, and there is a concern that having such technical things present here on the forums will be so overwhelming to some potential customers it will actually drive them away, hence my mostly posting about this sort of thing at:

It would make me very happy if Carbide Create could be updated to allow DXF or SVG colours to map to layers in Carbide Create, but it seems a feature with a limited potential userbase — I would love to be wrong about this though.

This topic was automatically closed after 30 days. New replies are no longer allowed.