Message 1 of 17
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to create a loft with CreateLoftGeometry. It creates two CurveLoops from points perfectly tested with creation of model lines (see image). But how can I add both CurveLoops to the "profile3" list, so you can use it for CreateLoftGeometry? With my code for now it adds only the first CurveLoop to the list, but I need both.
CurveLoop profileLoop = new CurveLoop(); List<CurveLoop> profile3 = new List<CurveLoop>(); SolidOptions options = new SolidOptions(ElementId.InvalidElementId, ElementId.InvalidElementId); for (int i = 0; i < p.Count - 1; ++i) { // Create lines and convert points to mm Line line = Line.CreateBound(p[i] / 304.8, p[i + 1] / 304.8);
//Append points to CurveLoop profileLoop.Append(line); }
//Here I want to add both created CurveLoops to list profile3.Add(profileLoop);
//Create Loft
Solid loft = GeometryCreationUtilities.CreateLoftGeometry(profile3 ,options);
Solved! Go to Solution.