Revit.SDK.Samples.Reinforcement.CS.BeamGeometrySupport.BeamGeometrySupport C# (CSharp) Method

BeamGeometrySupport() public method

constructor
public BeamGeometrySupport ( FamilyInstance element, Options geoOptions ) : System
element FamilyInstance the beam which the rebars are placed on
geoOptions Options the geometry option
return System
        public BeamGeometrySupport(FamilyInstance element, Options geoOptions)
            : base(element, geoOptions)
        {
            // assert the host element is a beam
            if (!element.StructuralType.Equals(StructuralType.Beam))
            {
                throw new Exception("BeamGeometrySupport can only work for beam instance.");
            }

            // Get the length, width and height of the beam.
            m_beamLength = GetDrivingLineLength();
            m_beamWidth = GetBeamWidth();
            m_beamHeight = GetBeamHeight();
        }