pyautocadAutoCAD Automation for Python | |
Download |
pyautocad Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Roman Haritonov
- Publisher web site:
- https://bitbucket.org/reclosedev/
pyautocad Tags
pyautocad Description
pyautocad is a Python library aimed to simplify writing ActiveX Automation scripts for AutoCAD with Python.Documentation:Documentation can be found at readthedocs.org Simple usage example:from pyautocad import Autocad, APointacad = Autocad()acad.prompt("Hello, Autocad from Python\n")print acad.doc.Namep1 = 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 += 10dp = APoint(10, 0)for text in acad.iter_objects('Text'): print text.TextString, text.InsertionPoint text.InsertionPoint = APoint(text.InsertionPoint) + dpfor obj in acad.iter_objects(): print obj.ObjectNameSee more examples in source distribution.Product's homepage
pyautocad Related Software