Skip to main content

pyzwcad - ZwCAD Automation for Python

This library aimed to simplify writing ActiveX Automation scripts for ZwCAD with Python

This library is forked from the pyautocad library, everywhere you can call ACAD and ZCAD, you can use ZwCad type and also use AutoCad type.

Requires:

Optional:

Features:

  • Simplifies work with coordinates (3D points)

  • Efficient objects iteration and searching (with casting to correct type)

  • Excel/csv/json import and export (xlrd and tablib required)

Simple usage example:

from pyzwcad import ZwCAD, APoint


acad = ZwCAD()
acad.prompt("Hello, Autocad from Python\n")
print acad.doc.Name

p1 = APoint(0, 0)
p2 = APoint(50, 25)
for i in range(5):
    text = acad.model.AddText('Hi %s!' % i, p1, 2.5)
    acad.model.AddLine(p1, p2)
    acad.model.AddCircle(p1, 10)
    p1.y += 10

dp = APoint(10, 0)
for text in acad.iter_objects('Text'):
    print('text: %s at: %s' % (text.TextString, text.InsertionPoint))
    text.InsertionPoint = APoint(text.InsertionPoint) + dp

for obj in acad.iter_objects(['Circle', 'Line']):
    print(obj.ObjectName)

See more examples in source distribution.

Metadata

Release files for pyzwcad 0.3.2

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

Source distribution (sdist)

Source distribution for pyzwcad 0.3.2
File Size Uploaded Provenance Actions
pyzwcad-0.3.2.tar.gz 32.3 kB Without provenance Details for pyzwcad-0.3.2.tar.gz

Release files / pyzwcad-0.3.2.tar.gz

Download URL pyzwcad-0.3.2.tar.gz
Size 32.3 kB
Tags Source
SHA-256 checksum
How to use checksums
afb39a33a53bd71029c95d407f507d7767b90549af0ff9c304f141b843692e2f
BLAKE2b-256 checksum
How to use checksums
21a6ddda95531acbe7e2ca39ceef915bc3dc7a21d108231968083c557a4743be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Security for pyzwcad 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.2 This release

1 release file No provenance

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