I'm a beginner learning Python. Trying to automate AutoCAD. What I wanted to know is how to receive event fired by the AutoCAD application. When a drawing opening process is done, the application will fire an event EndOpen. In VBA, I know how to catch and respond to this event. But do not know how to accomplish it with Python.
import win32com.client
acad = win32com.client.Dispatch("AutoCAD.Application")
acad.Visible = True
acad.WindowState = 3
doc = acad.Documents.Open(r"C:\Drawings\test.dwg")
print ("Drawing opened.")
Thanks for your time and help,
--
Regards,
- wcc
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32