Hi, It doesn't work I have an error message
Microsoft.Scripting.ArgumentTypeException: expected StrongBox[TPick], got TMesh code: result, pick = LE.EntityPick(entity,10.0) On Sat, Mar 26, 2011 at 3:13 AM, Tomas Matousek < tomas.matou...@microsoft.com> wrote: > This should work: > > > > result, pick = EntityPick(entity) > > > > That is, out arguments are returned bundled in a tuple with the result of > the method. > > > > Tomas > > > > *From:* users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *Afan Olovcic > *Sent:* Friday, March 25, 2011 6:56 PM > *To:* users@lists.ironpython.com > *Subject:* [IronPython] The return value (out) > > > > Hi, > > > > Can somebody help me to solve this problem please ? > > > > in the .NET Assembly there is C# function: > > public static extern int EntityPick(out TPick pick, TEntity entity, float > range = 100, float radius = 0, int collisionType = 0, PickFilterCallback > pickfilter = null); > > > > how to call that function in ironPython and get return value of pick > > > > I can't find working solution > > > > Thanks > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com