Menu

#120 Export of DXF file with layer information

Done
chrisko
High
All
Other
2021-05-02
2020-10-31
Ahsan
No

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

Discussion

  • chrisko

    chrisko - 2020-11-01

    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?

     
    • Ahsan

      Ahsan - 2020-11-01

      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)

       
  • chrisko

    chrisko - 2020-11-01

    Did you try to add different layers by using the following line in the postprocessor config:

    # This will be done after each layer, if different tools are used.
    tool_change = T%tool_nr M6%nlS%speed%nl
    

    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 ....

     
    • Ahsan

      Ahsan - 2020-11-01

      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.

       
  • chrisko

    chrisko - 2021-05-02
    • status: New --> Done
    • assigned_to: chrisko
    • OpSys: --> All
    • Type: Enhancement --> Other
     

Log in to post a comment.

MongoDB Logo MongoDB