[python-win32] AutoCAD automation with COM.
Thomas Heller
theller at ctypes.org
Tue Apr 28 14:04:05 CEST 2009
Costin Gamenţ schrieb:
> Hi, everybody!
>
> I'm trying to automate some tasks in AutoCAD (version 16.2 -- 2006) with
> Python and COM. Apparently there is a long standind bug with either
> win32com or AutoCAD:
> http://mail.python.org/pipermail/python-win32/2005-December/004075.html
> and I am having the same problem. Does anybody know a solution for this
> problem?
>
> I must specify that this is my first time doing anything COM-related (and,
> in fact, coding in windows).
You could try comtypes, it allows to specify the exact parameters that
are passed as VARIANTs. There is even a sample snippet for autocad
in the docs:
http://starship.python.net/crew/theller/comtypes/
>
> Thanks,
> Costin
Thomas
More information about the python-win32
mailing list