[python-win32] passing array by reference (3)

Andreas Holtz A.Holtz at gmx.net
Sun Feb 19 14:57:28 EST 2017


I missed your second questions:
I have no experience with this. But it looks like one could wrap a Python-array in such a VARIANT
object and hand this to CATIA, like:

v = VARIANT(pythoncom.VT_BYREF | pythoncom.VT_ARRAY | pythoncom.VT_R4, 12*[1.])

Worth a try.

Peter Enenkel schrieb am 19.02.2017 um 20:38:
> An other idea I came up over the weekend is using the VARIANT type, like it is described here
> <http://docs.activestate.com/activepython/3.4/pywin32/html/com/win32com/HTML/variant.html> do you
> think that is a viable option, or am I misunderstanding the purpose of this construct?


More information about the python-win32 mailing list