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

Amaury Forgeot d'Arc amauryfa at gmail.com
Wed Feb 4 17:37:36 CET 2015


2015-02-03 23:49 GMT+01:00 anton <antonxx at gmx.de>:

> 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").
>

It has been a long time, but I think that "print myobject" displays the
typename...


>
> Do you have a hint or small example?
>
> Thanks
>
> Anton
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>



-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20150204/33f65e40/attachment.html>


More information about the python-win32 mailing list