The method I used to merge dxf is AddScaledDXF, which adds dxf as a xref, and the method I used to generate gcode is CADtoGCode.CreateCode.F0
S 0
G0 Z0
I think the reason is CADtoGCode doesn't support xref, so there 2 solution:
- embed all xrefs into one dxf
- make CADtoGCode support xref
I don't know how to do either of them, please help me.