Skip to main content

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 the LINE and CIRCLE objects where color==1 and 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.

Metadata

Release files for vpype-dxf 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vpype-dxf 0.2.0
File Size Uploaded
vpype-dxf-0.2.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vpype-dxf 0.2.0
File Interpreter ABI Platform
vpype_dxf-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 13.3 kB

Release files / vpype-dxf-0.2.0.tar.gz

Download URL vpype-dxf-0.2.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
912e9d0d4faf37df340edf86da238a133aaf0a4958509993de0a56038a0d5115
BLAKE2b-256 checksum
How to use checksums
810679cf7089e27a62c269fa77ba3b5b1dbe9954f57ebdbcb64417a852bac085
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / vpype_dxf-0.2.0-py2.py3-none-any.whl

Download URL vpype_dxf-0.2.0-py2.py3-none-any.whl
Size 6.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
523a717981727f06fb8e41243cf394411745ff8786465d6260e9216b878f53b0
BLAKE2b-256 checksum
How to use checksums
7cac07eda69439cd4e5b0ed0d835fe7d6fa4e472297896715d55dd3a732c5910
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page