Skip to main content

Python 2D parametric DXF rendering engine.

Project description

QSketchMetric logo

CI Documentation Status codecov PyPI - Downloads License: MIT PyPI Python 3 Checked with mypy

QSketchMetric is a Python 2D parametric DXF rendering engine. Parametrization is done using QCAD Professional software

⚡️ Quickstart

from qsketchmetric.renderer import Renderer
from ezdxf import new
from ezdxf import units

output_dxf = new()
output_dxf.units = units.MM

input_parametric_dxf_path = 'tutorial.dxf'
input_variables = {"h": 50}

renderer = Renderer(input_parametric_dxf_path, output_dxf,
                    variables=input_variables)
renderer.render()

output_dxf.saveas('tutorial_rendered.dxf')

📷 Demo showcase

Demo GIF

⚙️ Installation

The most common case is the installation by pip package manager:

  pip install qsketchmetric

🎯 Features

  • Parametric DXF rendering
  • Easy dxf files parametrization using QCAD Professional software
  • Explicit support for parametrization of LINE,CIRCLE,ARC, POINT entities
  • Support for parametrization of LWPOLYLINE, POLYLINE, SPLINE, ELLIPSE, MTEXT, TEXT etc. entities using INSERT entity.
  • Open source and daily maintained

📚 Documentation

Documentation is available at QSketchMetric docs

📈 Roadmap

Explicit support for more entities is planned in the future. If you have any suggestions, please create an issue. If you want to contribute, see How to contribute section in the documentation. I am open to any suggestions and waiting for your pull requests!

⚠️ License

QSketchMetric is licensed under the MIT license. When using the QSketchMetric in your open-source project I would be grateful for a reference to the repository.

🏆 Hall of fame

This project exists thanks to all the people who contribute. Thank you!

GitHub Contributors Image

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

qsketchmetric-1.6.15.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

qsketchmetric-1.6.15-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file qsketchmetric-1.6.15.tar.gz.

File metadata

  • Download URL: qsketchmetric-1.6.15.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for qsketchmetric-1.6.15.tar.gz
Algorithm Hash digest
SHA256 d89c2c02ed2d8a16596d96449af0e39995f5fa711de7003015646aa72f042cd4
MD5 7869cf1dd89ea19a8fc9cf8176d8e155
BLAKE2b-256 ad7ef3bec27e65cec316bc93d831cc75f0cac84d0d596168f77c90f1530a119e

See more details on using hashes here.

File details

Details for the file qsketchmetric-1.6.15-py3-none-any.whl.

File metadata

File hashes

Hashes for qsketchmetric-1.6.15-py3-none-any.whl
Algorithm Hash digest
SHA256 55bdcde1266111a4443b7d43885f38981efde9bc92f0cdbe8809f3b4e7899d5b
MD5 b831bceee2ffd09e28a05f2c2d5a6802
BLAKE2b-256 76a99ed4463ff59825c6f55eda8a7e1e8f5c3191c5f6982010abdd06a574e4af

See more details on using hashes here.

Supported by

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