Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-30 Thread Mike Graham
On Thu, Jul 30, 2009 at 1:53 AM, Mark Hammond wrote: > On 29/07/2009 11:51 PM, Mike Graham wrote: > >> If I omit the parameters that don't mean anything to me on input, I >> get com_error: (-2147352561, 'Parameter not optional.', None, None). > > I'm afraid about my last idea is to pass pythoncom.A

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-30 Thread Mark Hammond
On 29/07/2009 11:51 PM, Mike Graham wrote: If I omit the parameters that don't mean anything to me on input, I get com_error: (-2147352561, 'Parameter not optional.', None, None). I'm afraid about my last idea is to pass pythoncom.ArgNotFound (as mentioned at the top of the generated files) f

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-29 Thread Mike Graham
On Wed, Jul 29, 2009 at 12:30 AM, Mark Hammond wrote: > On 29/07/2009 7:30 AM, Mike Graham wrote: >> >> Upon some further investigation, I have come to understand the method >> a bit better >> >> def PickObject(self, >>obj=defaultNamedNotOptArg, >>x=defaultNamedNotOptArg, >>

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mark Hammond
On 29/07/2009 7:30 AM, Mike Graham wrote: Upon some further investigation, I have come to understand the method a bit better def PickObject(self, obj=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, z=defaultNamedNotOptArg, obj_num=

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
Upon some further investigation, I have come to understand the method a bit better def PickObject(self, obj=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, z=defaultNamedNotOptArg, obj_num=defaultNamedNotOptArg, entity_num=defaultN

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
I'm very sorry for all the noise to the list, but being so clueless about what is going on, I keep stumbling into what is going on. I am trying to access Dispatch("My Application").Document.Model.PickObject. _IDualModelItem has the CLSID '{976FAFC8-96FD-11D4-A09D-0050DA1AC1A8}' and provides the Pi

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
I see with a bit more inspection you must have posted the and item from _prop_map_get_. My method isn't in there. I would not think it is supposed to be, as it is a method, not a member. I am unable to figure out what the equivalent operation for methods is in the call to _ApplyTypes_ or _oleobj_.I

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
Hi Greg, Thanks for your reply. I went back through the mailing list archives to try to find someone else who had the same problem I did and found your posts, but I couldn't quite understand your and Hammond's solutions well enough to apply it. Perhaps you or someone else can help me understand wh

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-27 Thread Greg Antal
Mike: When I ran into this, it was because the type library on which I ran makepy was not quite correctly defined. You could check the archives of this mailing list starting at http://www.mail-archive.com/python-win32@python.org/msg05578.html to see if maybe you have the same problem. If s