internal SectionAngle(double b, double h, double t, string AngleRotation, string AngleOrientation)
        {
            AngleRotation angleRotation;
            bool          IsValidString1 = Enum.TryParse(AngleRotation, true, out angleRotation);

            if (IsValidString1 != true)
            {
                throw new Exception("Angle rotation not recognized. Check string.");
            }

            AngleOrientation angleOrientation;
            bool             IsValidString2 = Enum.TryParse(AngleOrientation, true, out angleOrientation);

            if (IsValidString2 != true)
            {
                throw new Exception("Angle orientation not recognized. Check string.");
            }

            ISection r = new ds.SectionAngle("", b, h, t, angleRotation, angleOrientation);

            Section = r;
        }
Ejemplo n.º 2
0
 public SectionDoubleAngle(string Name, SectionAngle Angle, double Gap)
     : base(Name)
 {
     this.gap   = Gap;
     this.angle = Angle;
 }