Dear All,
During the use of dxf2gcode to export dxf format I have noticed that exported dxf file do not contain the layer information (previous layer information of entities is lost) and they all are added to the same layer.
Can you please enhance the functionality so that exported dxf (output) contains the layer info same as input dxf file.
Best Regards,
Ahsan
The current export is working layer by layer in an ordered manner. Gcode can not handle more layer information based on my knowlege.
What is the reason (use case) you need to have more information and how / what / where information from the baisc layer do you need?
Currently, I am using DXF2GCODE for tool path optimization.
for some reasons the cutting process is perfomered in two distint steps, and I have to keep it in DXF format (I cannot directly use the output GCode).
**Input: **
DXF file which contains 3 Layers:
Layer 1: Contains the objects to be cut during first cutting process
Layer 2: Contains the objects to be cut during second cutting process
Layer 3 (Mark Layer): Contains the Mark points for CCD positioning
Output:
DXF file after performing the path optimization
But the exported files do not contains the layer information as input file. So I need to re-define them and that takes extra time.
So I require the layer info to be integrated in the output (exported) DXF file (if possible)
Did you try to add different layers by using the following line in the postprocessor config:
I think this will enable you at least to have several layers.
Note: Don't ask me how to have layers in a dxf file, therefore please read the dxf reference and try to configure your postprocessor in the way it's required
The layernames as in your initial file are still missing, but i am not sure if you really need them.
If you need them also, you may be able to add some addition code in the following function, there the name of the Layer is still available.
https://sourceforge.net/p/dxf2gcode/sourcecode/ci/master/tree/source/dxf2gcode/postpro/postprocessor.py#l260
==> python skills should be available to do that ....
Thanks for considerate reply.
I don't mean to ask you about dxf file structure.
My question was aimed to know whether it's possible with this software, and what modifications are required to do this job.