algorithmic modeling for Rhino
Hi,
I'm working in a new version of RhinoNest for Grasshopper. Now I'm adding multisheet option. Everything is working fine except I don't know the best option to output the results.
In the current version we just output a sheet, then we used
DA.SetDataList(0, GeometricGooResult)
Dim GeometricGooResult As New List(Of Grasshopper.Kernel.Types.IGH_GeometricGoo)
Now I'm using Dim GeometricGooResult As New List(Of List(Of Grasshopper.Kernel.Types.IGH_GeometricGoo))
but I don't know how I can define the output. Any idea? I was trying with SetDataTree but no good result!
Thanks,
Rafael del Molino
TDM Solutions SL
Tags:
If you want to output lists within lists use a datatree:
Dim GeometricGooResult As New Datatree(Of Grasshopper.Kernel.Types.IGH_GeometricGoo)
Actually, if you're doing this in a compiled component rather than a script component, I highly recommend GH_Structure(Of T As IGH_Goo) instead. I'm not even sure DataTree(Of T) works in gha components.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Sorry for feeding misinformation. Didn't realize it was for a compiled component.
Hi all!
Thanks for the help.
Now I'm defining the nesting result as:
Dim NestingResult As New GH_Structure(Of IGH_GeometricGoo) ' Result all sheets
Dim NestingCurrentSheetResult As New List(Of IGH_GeometricGoo) ' Result of current sheet
[Crash] NestingResult.Branches.Add(NestingCurrentSheetResult )
Any idea?
Thanks and best regards,
Rafa
Hi! Any idea? :)
Use the Append and AppendRange methods on IGH_Structure. You cannot add branches manually because branches and paths always need to be synched.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
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