[python-win32] Error while executing pythonWin script

2012-10-12 Thread Pamidi, Srinu
Hi, we are getting exceptions while executing pythonWin script. Please find attachment contains error messages. The python script uses ArcInfo toolbox(ESRI component) to perform geoprocessing opeations. script was implemented on python21,pythonwin32. Now I am trying to run old version of

[python-win32] VARIANT parameter

2012-10-12 Thread Johannes Frank
Hello, I am trying to access an AutoCAD clone, intellicad, via win32com. I managed to access, but now I am stuck. AutoCAD as well as Intellicad want filterType=VARIANT(pythoncom.VT_ARRAY,[0]) filterData=VARIANT(pythoncom.VT_ARRAY,['LINE']) dwg.ActiveSpace =

Re: [python-win32] VARIANT parameter

2012-10-12 Thread Matteo Boscolo
sometimes you need a combination of variant type like win32com.client.VARIANT(VT_VARIANT | VT_NULL,None) it's better to pass tuple instead of list .. may be this could help .. regards, Matteo Il 12/10/2012 13:13, Johannes Frank ha scritto: Hello, I am trying to access an AutoCAD clone,

Re: [python-win32] VARIANT parameter

2012-10-12 Thread Dan Glassman
On Fri, Oct 12, 2012 at 6:27 AM, Matteo Boscolo matteo.bosc...@boscolini.eu wrote: sometimes you need a combination of variant type like win32com.client.VARIANT(VT_VARIANT | VT_NULL,None) In this case, AutoCAD and Intellicad want: filterType = VARIANT(pythoncom.VT_ARRAY | pythoncom.VT_I2,