Sorry to interject here but I have a question along the same vein:
If I have a script (in this case that interacts with Word through
win32com.client) with statements like this:
doc.ActiveWindow.Selection.BoldRun()
doc.ActiveWindow.Selection.TypeText(_type)
doc.ActiveWindow.Selection.BoldRun()
Does
I have read about Early Binding but I hadn't tested the line that you
reference:
acad= win32com.client.gencache.EnsureDispatch("AutoCAD.Application")
For my surprise, if I replace line:
acad= win32com.client.Dispatch("AutoCAD.Application")
for the line:
acad= win32com.client.gencache.EnsureDisp