ZwCAD Automation for Python
Project description
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:
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.
Links
Documentation at readthedocs.org
Source code and issue tracking at GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyzwcad-0.3.2.tar.gz
(32.3 kB
view details)
File details
Details for the file pyzwcad-0.3.2.tar.gz
.
File metadata
- Download URL: pyzwcad-0.3.2.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb39a33a53bd71029c95d407f507d7767b90549af0ff9c304f141b843692e2f |
|
MD5 | c58ac84254020270b07cf5d090c35651 |
|
BLAKE2b-256 | 21a6ddda95531acbe7e2ca39ceef915bc3dc7a21d108231968083c557a4743be |