Exporter_DXF#

class zeroheliumkit.src.importing.Exporter_DXF(name: str, zhk_layers: dict, layer_cfg: list)[source]#

Bases: object

Helper class to export zhk dictionary with geometries into .dxf file.

Parameters:
  • name (str) – The name of the DXF file.

  • zhk_layers (dict) – A dictionary containing the geometries for each layer.

  • dxf (ezdxf.DXFDocument) – The DXF document object.

  • layer_cfg (list) – A list containing the layer configuration.

Methods

preapre_dxf()

Prepares the DXF file by creating a new DXF document and adding layers with polygons.

save()

Saves the DXF file.

Attributes

name

zhk_layers

dxf

layer_cfg

preapre_dxf() None[source]#

Prepares the DXF file by creating a new DXF document and adding layers with polygons.

save()[source]#

Saves the DXF file.