Re: [Ironpython-users] COM Interop argument convert error

2012-01-25 Thread Kamu
I did a bit of playing around and I have instead of feeding the argument a None, I fed the template argument an element that is fetched through another COM method. This has caused the call to go through with out any problems (so: the point3ds do not have to be refs). However, I really do want to pa

Re: [Ironpython-users] COM Interop argument convert error

2012-01-24 Thread Jeff Hardy
Check out http://ironpython.net/documentation/dotnet/dotnet.html#ref-and-out-parameters - IronPython treats ref/out parameters a bit differently than VBA does. - Jeff On Tue, Jan 24, 2012 at 8:06 PM, Kamu wrote: > Hi All, > > Having a problem passing 'None' to a COM Interop method that can > ac

[Ironpython-users] COM Interop argument convert error

2012-01-24 Thread Kamu
Hi All, Having a problem passing 'None' to a COM Interop method that can accept 'Nothing' (in VBA) My code (with considerable snippage): t = System.Type.GetTypeFromProgID("MicroStationDGN.Application") self.ms = System.Activator.CreateInstance(t) elem = self.ms.CreateLineElement2(None, point3d1