I ran across a problem working with GH_Structure.
Since I am working inside VS2017, rhino6 beta and acording grasshopper, I should work with GH_Structure instead of Grasshopper.DataTree what I found out so far.
I have a problem accessing the GH_Structure again after appending data.
According to the SDK, I should be able to access a given path by
Branch(GH_Path) → Gets a limited access pointer to the data list associated with a certain path.
but VS2017 Intellisense only gives my
here is the general code
// create new Tree
GH_Structure<GH_Curve> LinesTree = new GH_Structure<GH_Curve>();
//Loop through lines
for (int i = 0; i < Counter; i++)
GH_Path path = new GH_Path(i);
PolylineCurve polylinecurve = new PolylineCurve(polyline3dPoints);
GH_Curve ghPolylineCurve = new GH_Curve(polylinecurve);
// —> PROBLEM calling .Branch || only .Branches or .get_Branch available in Intellisense VS 2017
List<GH_Curve> ghCurveList = LinesTree.Branch(path);
I have the same problem in VS2015 and rhino5 and according grasshopper.
Thanks for your help.