algorithmic modeling for Rhino
Tags:
Hi Danijel,
can you explain precisely what it is you need to accomplish?
Serialization is the process of converting run-time data into storable data, usually Strings or ByteArrays. The easiest I think would be to create an Xml string out of your data. Grasshopper comes with a dll (GH_IO.dll) which has a bunch of classes that make it exceedingly easy to write and read Xml strings.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi Danijel,
If I understand your question correctly you would be better of switching to the new vb component (using Rhinocommon). These have 3 ways to access input variables (item access, list access and DataTree access). If you output data from one component as DataTree you can input it again in another component as DataTree. Then it's possible to access the data in a way similar to a multidimensional array using InputTree.Branch(x)(y)
Private Sub RunScript(ByVal InputTree As DataTree(Of System.Object), ByVal x As Integer, ByVal y As Integer, ByRef A As Object)
'your code goes here…
A = InputTree.Branch(x)(y)
End Sub
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
© 2024 Created by Scott Davidson.
Powered by