protected override void SolveInstance(IGH_DataAccess DA) { List <WR_IXSec> crossSections = new List <WR_IXSec>(); bool allowRotation = false; int sectionChangeType = 0; double minUtil = 0; double maxUtil = 1; if (!DA.GetDataList(0, crossSections)) { return; } if (!DA.GetData(1, ref allowRotation)) { return; } if (!DA.GetData(2, ref sectionChangeType)) { return; } if (!DA.GetData(3, ref minUtil)) { return; } if (!DA.GetData(4, ref maxUtil)) { return; } WR_Element3dOptProp optProp = new WR_Element3dOptProp(allowRotation, sectionChangeType, minUtil, maxUtil); for (int i = 0; i < crossSections.Count; i++) { optProp.AddCrossSection(crossSections[i]); } DA.SetData(0, optProp); }
protected override void SolveInstance(IGH_DataAccess DA) { List<WR_IXSec> crossSections = new List<WR_IXSec>(); bool allowRotation = false; int sectionChangeType = 0; double minUtil = 0; double maxUtil = 1; if(!DA.GetDataList(0, crossSections)) { return; } if(!DA.GetData(1, ref allowRotation)) { return; } if (!DA.GetData(2, ref sectionChangeType)) { return; } if (!DA.GetData(3, ref minUtil)) { return; } if (!DA.GetData(4, ref maxUtil)) { return; } WR_Element3dOptProp optProp = new WR_Element3dOptProp(allowRotation, sectionChangeType, minUtil,maxUtil); for (int i = 0; i < crossSections.Count; i++) { optProp.AddCrossSection(crossSections[i]); } DA.SetData(0, optProp); }