Python AutoCAD COM automation via pywin32
Project description
pyacadcom - Pyton automation of AutoCAD
Pyton scripts coding for AutoCAD via ActiveX Automation
v.0.0.9
Requires:
- pywin32
Features:
- Solves connection to Autocad COM
- Simplifies work with coordinates
- Simplifies user input
Simple usage example:
from pyacadcom import AutoCAD, AcadPoint
acad=AutoCAD()
point1 = AcadPoint(25, 50, 0)
nextpoint = (100,100,10)
point2 = AcadPoint(nextpoint)
acad.ActiveDocument.ModelSpace.AddLine(point1(), point2())
point3 = point1 + point2
acad.ActiveDocument.ModelSpace.AddLine(point2(), point3())
AcadPoint() is equal to AcadPoint.coordinates and returns variant array of doubles of x, y, z coordinates AcadPoint.coordinates2D returns variant array of doubles of x, y coordinates
Links
- Source code and issue tracking at https://github.com/lobyntsev-d/pyacadcom
- pywin32: http://pypi.python.org/pypi/pywin32
Version history
0.0.10:
- class AcadPoint renamed to AcadPoint
- property coordinates2D is added to AcadPoint class
0.0.9: new types added for wrapping
0.0.8: fix attribute errors cases
0.0.7: new COM wrapper
0.0.6: bugfix
0.0.5: bugfix
0.0.4: user input methods
0.0.3: service methods
0.0.2: AcadPoint class
0.0.1: first release
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyacadcom-0.0.10.tar.gz.
File metadata
- Download URL: pyacadcom-0.0.10.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
101e0450616258319c61dd34ea7c6c1211b27eb957b2d294d023ee53c1ed30ca
|
|
| MD5 |
564185eee24c6c472e59388cbf218a30
|
|
| BLAKE2b-256 |
c3ba35b0cd9a752006dccc7bd3267e09c2c70751e811b39e791d8bf3a6263916
|
File details
Details for the file pyacadcom-0.0.10-py3-none-any.whl.
File metadata
- Download URL: pyacadcom-0.0.10-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11eb6a1ae7ca168b037b58832336d8c422ad59d6e0f76515be93b2a22730823a
|
|
| MD5 |
75ff781f712d09878e302123e100dfa9
|
|
| BLAKE2b-256 |
c64f75621d387c32352d3d613be4a4adb91e854dae170cd3d7a030199e472026
|