[python-win32] Array and CATIA

2007-05-07 Thread Andreas Holtz
Hello, we have a problem to pass an array to the GetComponents()-Method of CATIA-COM-Object. The method expects an array as method-parameter. The result will be written in the given array. The array must be initialized with 12 elements. You can't pass an empty array/dictionary to the method.

[python-win32] Fw: Python COM and Photoshop

2007-05-07 Thread Sam The Cat
I thought I'd try this again -- still no progress on my debugging. From using Visual Basic it seems that the interface is expecting an array of type varint where each element of the array is another array. The inner arrays are two elements long (an x and y data point) I have also tried using

Re: [python-win32] Python COM and Photoshop

2007-05-07 Thread Sam The Cat
One more thought -- I have tried both Early and Late binding COM calls and I get the same error message either way. >I thought I'd try this again -- still no progress on my debugging. From >using Visual Basic it seems that the interface is expecting an array of >type varint where each elemen

Re: [python-win32] Fw: Python COM and Photoshop

2007-05-07 Thread Mark Hammond
> > F:\automation>test2.py > > [(1, 1), (1, 2), (2, 2), (2, 1)] > > Traceback (most recent call last): > > File "F:\automation\test2.py", line 19, in ? > > doc.Selection.Select(selregion,1,0,0) > > File ">", line 3, in Select > > pywintypes.com_error: (-2147352567, 'Exception occurred.', >