algorithmic modeling for Rhino
Tags:
//This is our object
SomeObject someObj = new SomeObject();
//Grasshopper automatically wraps it
Grasshopper.Kernel.Types.EH_ObjectWrapper ow = new Grasshopper.Kernel.Types.EH_ObjectWrapper(someObj);
//You can get the value from the wrapper and cast it to the original value
SomeObject gettingObj = (SomeObject)ow.Value;
'This is our object
Dim someObj As New SomeObject()
'Grasshopper automatically wraps it
Dim ow As New Grasshopper.Kernel.Types.EH_ObjectWrapper(someObj)
'You can get the value from the wrapper and cast it to the original value
Dim gettingObj As SomeObject = DirectCast(ow.Value, SomeObject)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by