Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.58 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.58 KB

dxf2elmt

dxf2elmt is CLI program which can convert .dxf files into .elmt files. The program supports both ascii and binary .dxf files.

The goal of this program is to create a fast and accurate conversion tool to be used with QElectroTech. Compared to QET's own conversion tool, dxf2elmt is over 1000x times faster.

How to Use

dxf2elmt requires only one input from the user, the input file.

For example:

./dxf2elmt my_file.dxf

The .elmt file will be outputted in the same directory as the executable. It will retain the name of the .dxf file.

If you wish to forgo outputting a .elmt file, you can use the "-v" argument for verbose output. This will output the contents of the .elmt file to stdout without actually creating the file. For example:

./dxf2elmt my_file.dxf -v

Supported Entities

  • Lines
  • Circles
  • Arcs
  • Texts
  • Ellipses
  • Polylines
  • LwPolylines
  • Solids
  • Splines
  • Blocks

To Do

  • Support for the following

    • Remaining 2d entities
  • Better error messages

  • Logging

Known Issue(s)

  • ParseError(#): This occurs due to an improper .dxf file
    • Current fix: Resave .dxf file using a reliable CAD program in order to correct compliant .dxf file

Compiling

Compiled using Rust (MSRV 1.74.1).

Credits