|
|
|
|
@ -3,6 +3,15 @@ dxf2elmt is CLI program which can convert .dxf files into [QElectroTech](https:/
|
|
|
|
|
|
|
|
|
|
The goal of this program is to create a fast and accurate conversion tool to be used with [QElectroTech](https://qelectrotech.org/).
|
|
|
|
|
|
|
|
|
|
## 注意:提前配置好RUST的环境
|
|
|
|
|
配置环境参考:https://www.cnblogs.com/timefiles/p/17930394.html
|
|
|
|
|
|
|
|
|
|
修改完代码后如何运行:
|
|
|
|
|
|
|
|
|
|
1.先编译:cargo build --release
|
|
|
|
|
|
|
|
|
|
2.然后在项目目录下找到:target->release->dxf2elmt.exe,然后按下面"How to Use"的方法测试
|
|
|
|
|
|
|
|
|
|
## How to Use
|
|
|
|
|
dxf2elmt requires only one input from the user, the input file.
|
|
|
|
|
|
|
|
|
|
@ -20,6 +29,10 @@ If you wish to forgo creating an .elmt file, you can use the "-v" argument for v
|
|
|
|
|
./dxf2elmt my_file.dxf -v
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 重要工具
|
|
|
|
|
dxf2json.exe 必要时使用该工具将dxf文件转换为json文件,这样可以清晰地查看dxf文件中的实体、块的架构以及对齐方式、颜色、坐标等信息
|
|
|
|
|
使用方法:./dxf2json 文件名
|
|
|
|
|
|
|
|
|
|
## Supported Entities
|
|
|
|
|
|
|
|
|
|
* Lines
|
|
|
|
|
|