AutoCAD Automation for Python
Project description
pyautoacad - AutoCAD Automation for Python
This library aimed to simplify writing ActiveX Automation scripts for AutoCAD with Python
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('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
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.2.zip
(42.7 kB
view details)
Built Distribution
pyautocad-0.1.2.win32.exe
(208.8 kB
view details)
File details
Details for the file pyautocad-0.1.2.zip
.
File metadata
- Download URL: pyautocad-0.1.2.zip
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45af0fa9e20105dd4570e4580ea2a031b35e90cb117a311d62e01735132408dd |
|
MD5 | 9f9b19a09e8e09c357e7d2bfd768cb04 |
|
BLAKE2b-256 | a207eb36d8a5044af0fb86c4fa80c1d4910e6733a82779f5c7dbb0c9a007ec3a |
File details
Details for the file pyautocad-0.1.2.win32.exe
.
File metadata
- Download URL: pyautocad-0.1.2.win32.exe
- Upload date:
- Size: 208.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc05b3c82037b676ef89bbf47bb2630b6c5d6c43a41b3d4d5f1aaaff49867432 |
|
MD5 | 729a92504063506e700b6f88c4dea235 |
|
BLAKE2b-256 | 817c80dd4fe7787fbc777a7ab40035c980a2b2228feb150fe96f9b7007306b24 |