public BeamProperties(WR_Material mat, WR_IXSec section, WR_ReleaseBeam3d stRel, WR_ReleaseBeam3d enRel, WR_Element3dOptProp elemOptProp) { _mat = mat; _stRel = stRel; _enRel = enRel; _section = section; _elemOptProp = elemOptProp; }
protected override void SolveInstance(IGH_DataAccess DA) { // string crossSection = ""; WR_IXSec xSec = null; WR_ReleaseBeam3d stREl = null; WR_ReleaseBeam3d enREl = null; WR_Material mat = null; WR_Element3dOptProp optProp = null; if (!DA.GetData(0, ref xSec)) { return; } if (!DA.GetData(1, ref stREl)) { return; } if (!DA.GetData(2, ref enREl)) { return; } if (!DA.GetData(3, ref mat)) { return; } // Check releases if (!CheckReleases(stREl, enREl)) { return; } BeamProperties beamProp; if (!DA.GetData(4, ref optProp)) { beamProp = new BeamProperties(mat, xSec, stREl, enREl); } else { beamProp = new BeamProperties(mat, xSec, stREl, enREl, optProp); } DA.SetData(0, beamProp); }
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); }