[python-win32] howto get the typename of a comobject

anton antonxx at gmx.de
Tue Feb 3 23:49:51 CET 2015


Hi,

I an using python
using win32com.client to 
pilot CATIA.

I try to get the structure of the loaded CATProducts
CATParts and CATDrawings.

For this I would like to get the typename of the com
objects like "Document" or "Product".

In the vba example people use the VBA function TypeName()
to get the name of the type as string.

Unfortunately I didn't find an equivalent function for python
(or at least a way to achieve the same result).

The python type function is here not of use (I get always "COMObject").

Do you have a hint or small example?

Thanks

Anton



More information about the python-win32 mailing list