AutoCAD Automation for Python
Project description
pyautoacad - AutoCAD Automation for Python
This library aimed to simplify writing ActiveX Automation scripts for AutoCAD with Python
Documentation:
Documentation can be found at readthedocs.org
Requires:
Optional:
Feautures:
Simple usage example:
from pyautocad import Autocad, APoint acad = Autocad() 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(u'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.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.
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
pyautocad-0.1.1.zip
(36.8 kB
view details)
Built Distribution
pyautocad-0.1.1.win32.exe
(207.7 kB
view details)
File details
Details for the file pyautocad-0.1.1.zip
.
File metadata
- Download URL: pyautocad-0.1.1.zip
- Upload date:
- Size: 36.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9da1d3c49e26dd778cd35827f95b7042785b3e39aa31b566d9b77da02f1502 |
|
MD5 | 59d8a4bf61b4853d16c84971503ff0fa |
|
BLAKE2b-256 | ba97c7d9a6776b9d0f22206d07fdcacab91ef5db33a298dcd6e9d15f36d78f80 |
File details
Details for the file pyautocad-0.1.1.win32.exe
.
File metadata
- Download URL: pyautocad-0.1.1.win32.exe
- Upload date:
- Size: 207.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab950e9a3597f04fa7cbf3cc52b625c86613ea342039463079acbd2256a2054d |
|
MD5 | 208c400033d16c527763a7862c302766 |
|
BLAKE2b-256 | 7fe2a93b219af7055826d1e507c5d592c8cb3741556fe88ee5fe67c6daa1f110 |