/// <summary> /// Returns beam rebar data for frame sections. /// The material assigned to the specified frame section property must be concrete. /// This function applies only to the following section types: /// <see cref="eFrameSectionType.TSection" />; /// <see cref="eFrameSectionType.Angle" />; /// <see cref="eFrameSectionType.Rectangular" />; /// <see cref="eFrameSectionType.Circle" /> /// </summary> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void Fill() { try { _apiFrameSection.GetRebarBeam(CrossSectionName, out var materialNameLongitudinal, out var materialNameConfinement, out var coverTop, out var coverBottom, out var topLeftArea, out var topRightArea, out var bottomLeftArea, out var bottomRightArea); Detailing = new BeamRebarDetailing() { MaterialNameLongitudinal = materialNameLongitudinal, MaterialNameConfinement = materialNameConfinement, CoverTop = coverTop, CoverBottom = coverBottom, TopLeftArea = topLeftArea, TopRightArea = topRightArea, BottomLeftArea = bottomLeftArea, BottomRightArea = bottomRightArea }; } catch (CSiException e) { Console.WriteLine(e); Detailing = null; } }
/// <summary> /// Assigns beam rebar data for frame sections. /// The material assigned to the specified frame section property must be concrete. /// This function applies only to the following section types: /// <see cref="eFrameSectionType.TSection" />; /// <see cref="eFrameSectionType.Angle" />; /// <see cref="eFrameSectionType.Rectangular" />; /// <see cref="eFrameSectionType.Circle" /> /// </summary> /// <param name="beamRebar">The beam rebar.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void Set(BeamRebarDetailing beamRebar) { try { _apiFrameSection.SetRebarBeam(CrossSectionName, beamRebar.MaterialNameLongitudinal, beamRebar.MaterialNameConfinement, beamRebar.CoverTop, beamRebar.CoverBottom, beamRebar.TopLeftArea, beamRebar.TopRightArea, beamRebar.BottomLeftArea, beamRebar.BottomRightArea); Detailing = beamRebar; } catch (CSiException e) { Console.WriteLine(e); Detailing = null; } }
/// <summary> /// Sets the beam rebar. /// </summary> /// <param name="beamRebar">The beam rebar.</param> public void SetBeamRebar(BeamRebarDetailing beamRebar) { setBeamRebar(beamRebar); }