public PredefinedSectionCHS(AiscCatalogShape section) : base(section) { this._D = section.OD; this._t = section.tnom; this._t_des = section.tdes; OverrideCentroids(); }
public PredefinedSectionRHS(AiscCatalogShape section) : base(section) { this._B = section.B; this._H = section.H; this._t_des = section.tdes; this._t_nom = section.tnom; OverrideCentroids(); }
public PredefinedSectionI(AiscCatalogShape section) : base(section) { this._d = section.d; this._bf = section.bf; this._tf = section.tf; this._t_w = section.tw; this._k = section.kdes; s = section; OverrideCentroids(); }
public PredefinedSectionChannel(AiscCatalogShape section) : base(section) { s = section; this._d = section.d; this._b_f = section.bf; this._t_f = section.tf; this._t_w = section.tw; this._k = section.kdes; OverrideCentroids(); }
public PredefinedSectionAngle(AiscCatalogShape section, AngleOrientation AngleOrientation, AngleRotation AngleRotation) : base(section) { //this._d = section.d; //this._b = section.b; Set_b_and_d(section.d, section.b, AngleOrientation); this._t = section.t; this.AngleOrientation = AngleOrientation; this.AngleRotation = AngleRotation; base._y_Bar = section.y; base._y_pBar = section.yp; }
public ISection GetShape(string ShapeId, ShapeTypeSteel shapeType, AngleOrientation AngleOrientation = AngleOrientation.LongLegVertical, AngleRotation AngleRotation = AngleRotation.FlatLegBottom) { string DEFAULT_EXCEPTION_STRING = "Selected shape is not supported. Specify a different shape."; AiscCatalogShape cs = new AiscCatalogShape(ShapeId, null); CalcLog log = new CalcLog(); ISection sec = null; switch (shapeType) { case ShapeTypeSteel.IShapeRolled: sec = new PredefinedSectionI(cs); break; case ShapeTypeSteel.IShapeBuiltUp: throw new Exception(DEFAULT_EXCEPTION_STRING); break; case ShapeTypeSteel.Channel: sec = new PredefinedSectionChannel(cs); break; case ShapeTypeSteel.Angle: sec = new PredefinedSectionAngle(cs, AngleOrientation, AngleRotation); break; case ShapeTypeSteel.TeeRolled: throw new Exception(DEFAULT_EXCEPTION_STRING); break; case ShapeTypeSteel.TeeBuiltUp: throw new Exception(DEFAULT_EXCEPTION_STRING); break; case ShapeTypeSteel.DoubleAngle: throw new Exception(DEFAULT_EXCEPTION_STRING); break; case ShapeTypeSteel.CircularHSS: sec = new PredefinedSectionCHS(cs); break; case ShapeTypeSteel.RectangularHSS: sec = new PredefinedSectionRHS(cs); break; case ShapeTypeSteel.Box: throw new Exception(DEFAULT_EXCEPTION_STRING); break; case ShapeTypeSteel.Rectangular: throw new Exception(DEFAULT_EXCEPTION_STRING); break; case ShapeTypeSteel.Circular: throw new Exception(DEFAULT_EXCEPTION_STRING); break; case ShapeTypeSteel.IShapeAsym: throw new Exception(DEFAULT_EXCEPTION_STRING); break; default: break; } return(sec); }