Kelie schrieb:
> Thomas Heller <[EMAIL PROTECTED]> writes:
>> Ah, if XDataType must be an array of short (integers), then this call should
>> work:
>>
>> line.SetXData(array.array("h", [1001, 1070]), ['Test_Application', 600])
>>
>
> YES!! That worked! And here is the syntax for setting other types of xdata in
> case anyone is interested:
>
> line.SetXData(array.array("h", [1001, 1040]), ['Test_Application2', 132.65])
> line.SetXData(array.array("h", [1001, 1000]), ['Test_Application3',
> 'Test XData'])
> line.SetXData(array.array("h", [1001, 1010]), ['Test_Application4',
> array.array('d', [2.0,0,0])])
>
> Thomas, thanks a lot for the solution and detailed explanation!
>
I have started a small section on the webpage which tries to explain how
to pass array.array instances as VARIANT parameters to method calls; I
would appreciate if you or others would review this and check if it is
helpfull. Also it would be great if you could supply some code snippets
from autocad:
http://starship.python.net/crew/theller/comtypes/#converting-data-types
You may need to refresh the page in the browser since I did just upload it.
Thanks,
Thomas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
comtypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/comtypes-users