Closed adam-urbanczyk closed 1 month ago
Is this a hack? Why not just add this as a function to Sketch
?
Edit: I just tried it and it doesn't work for all sketches. If there are disconnected edges it could not handle them. The following could probably work. I tried it on some of my sketches.
def sketchToDxf(sketch, **kwargs):
w = (
cq.Workplane()
.add(sketch._faces)
.add(sketch._wires)
.add(sketch._edges)
)
cq.exporters.exportDXF(w, **kwargs)
Currently this kind of workaround is required: