vpype dxf plugin
Project description
vpype-dxf
vpype dxf loading plugin
Adds command dread (dxf-read) that reads dxf files and into the vpype pipeline.
ezdxf
Ezdxf is used as the backend of this project. The -Q/--query feed directly into the query field of the ezdxf query(), and the -g/--groupby option is directly in the groupby value. This will allow you to use any valid ezdxf properties to groupby. The defaults are * for query and color for groupby.
Examples
-
vpype <file> dread --groupby lineweight write lines.svg-- This would load the file and group the layers such that each lineweight in the dxf document is a different grouped according to their lineweight. -
vpype dread -Q 'LINE CIRCLE[color==1]' 3colors.dxf write lines-circ.svg-- This finds and processes only theLINEandCIRCLEobjects wherecolor==1and writes those to the given file. -
vpype dread -g lineweight file.dxf show --colorful-- Will group by the lineweight and show colorful layer groupings of those groups. This can work wonders for visualizing a messy file. -
vpype dread --groupby center circles.dxf stat-- Will group objects by the center of their circles.
See the ezdxf documentation on query for advanced help.
https://ezdxf.readthedocs.io/en/stable/query.html
Acknowledgement
- ezdxf author mozman did all the heavy lifting of parsing the dxf files.
- abruto's research and suggestions in issue #5 lead to rather large increase in functionality.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vpype-dxf-0.2.0.tar.gz.
File metadata
- Download URL: vpype-dxf-0.2.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
912e9d0d4faf37df340edf86da238a133aaf0a4958509993de0a56038a0d5115
|
|
| MD5 |
09661ad0df14d5818f251e9ecf3b7692
|
|
| BLAKE2b-256 |
810679cf7089e27a62c269fa77ba3b5b1dbe9954f57ebdbcb64417a852bac085
|
File details
Details for the file vpype_dxf-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: vpype_dxf-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
523a717981727f06fb8e41243cf394411745ff8786465d6260e9216b878f53b0
|
|
| MD5 |
7fee4202ead2a23548156977f91252e8
|
|
| BLAKE2b-256 |
7cac07eda69439cd4e5b0ed0d835fe7d6fa4e472297896715d55dd3a732c5910
|