Skip to main content

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 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.

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

vpype-dxf-0.2.0.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

vpype_dxf-0.2.0-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page