pyautocad 0.2.0
pip install pyautocad
Latest version
Released:
AutoCAD Automation for Python
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD License)
- Author: Roman Haritonov
- Tags autocad, automation, activex, comtypes
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
pyautoacad - AutoCAD Automation for Python
This library aimed to simplify writing ActiveX Automation scripts for AutoCAD with Python
Requires:
Optional:
Features:
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD License)
- Author: Roman Haritonov
- Tags autocad, automation, activex, comtypes
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyautocad-0.2.0.zip
.
File metadata
- Download URL: pyautocad-0.2.0.zip
- Upload date:
- Size: 45.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 619de4a7b0e5febe512970ef9c4cd4d24d97e11035f7133f292e643275a95392 |
|
MD5 | 820041b01f94c5d9d65a31b54beafc42 |
|
BLAKE2b-256 | 879205d8b3d37fd50db0a234f6a5959bd398ee2161ba3822cb832af5c6a1f458 |
File details
Details for the file pyautocad-0.2.0.win32.exe
.
File metadata
- Download URL: pyautocad-0.2.0.win32.exe
- Upload date:
- Size: 209.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 022bed14c38b176f5b5f693b7f52170758e27578288b0e2d91ecd4a684cc60f0 |
|
MD5 | ac0fb642fdc4105ca3fdfbbd9363a822 |
|
BLAKE2b-256 | db088dd5956858f4165727c336722c24f44456e62d61ba516a8530e86b3fd82e |