You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
Markdown
59 lines
1.6 KiB
Markdown
# dxf2elmt
|
|
dxf2elmt is CLI program which can convert .dxf files into [QElectroTech](https://qelectrotech.org/) .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](https://qelectrotech.org/).
|
|
|
|
## How to Use
|
|
dxf2elmt requires only one input from the user, the input file.
|
|
|
|
For example:
|
|
|
|
```bash
|
|
./dxf2elmt my_file.dxf
|
|
```
|
|
|
|
The .elmt file will be output into the same directory as the executable. It will retain the name of the .dxf file.
|
|
|
|
If you wish to forgo creating an .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:
|
|
|
|
```bash
|
|
./dxf2elmt my_file.dxf -v
|
|
```
|
|
|
|
## Supported Entities
|
|
|
|
* Lines
|
|
* Circles
|
|
* Arcs
|
|
* Texts
|
|
* Ellipses
|
|
* Polylines
|
|
* LwPolylines
|
|
* Solids
|
|
* Splines
|
|
* Blocks (there are still some known issues for deeply nested block)
|
|
* MText (partial support)
|
|
* Leader
|
|
|
|
## To Do
|
|
|
|
* Support for the following
|
|
* Remaining 2d entities
|
|
* Styling (such as Dimension Styles)
|
|
|
|
* Better error messages
|
|
* Logging
|
|
|
|
## Compiling
|
|
|
|
Compiled using Rust (MSRV 1.79.0).
|
|
|
|
## Credits
|
|
|
|
* [Antonioaja](https://github.com/antonioaja) for creating the initial versions of [dxf2elmt](https://github.com/antonioaja/dxf2elmt). Thank you for all your work.
|
|
* [QElectroTech](https://qelectrotech.org/)
|
|
* [dxf-rs](https://github.com/IxMilia/dxf-rs)
|
|
* [simple-xml-builder](https://github.com/Accelbread/simple-xml-builder)
|
|
* [bspline](https://github.com/Twinklebear/bspline)
|
|
* [tempfile](https://github.com/Stebalien/tempfile)
|