reclosedev / pyautocad

AutoCAD Automation for Python ⛺
http://pypi.python.org/pypi/pyautocad/
BSD 2-Clause "Simplified" License
486 stars 141 forks source link

Read&Write DWG #32

Open svetloffs opened 4 years ago

svetloffs commented 4 years ago

There is a task to automate the routine process associated with Autocad 2020 LT. You need to insert the same table into 180 DWG files (it's not a problem to load it in Python). The method for opening the file doesn't work:

from pyautocad import Autocad, APoint
acad = Autocad()
acad.prompt("Hello, Autocad from Python\n")
print(acad.doc.Name)

Help me, please if it possible.

maqiuping59 commented 2 years ago

Try open AutoCAD manually before run code.