Re: [python-win32] VARIANT parameter

2012-10-12 Thread Johannes Frank
Thank you Dan, it works like a charm. 2012/10/12 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]) > filterDa

Re: [python-win32] VARIANT parameter

2012-10-12 Thread Dan Glassman
On Fri, Oct 12, 2012 at 6:27 AM, Matteo Boscolo 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, [0]) filterData = VARIANT(

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, intel

[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 = cnsts.vicModelS