Revit.SDK.Samples.NewRoof.RoofForms.CS.FootPrintRoofWrapper.FootPrintRoofWrapper C# (CSharp) Method

FootPrintRoofWrapper() public method

The construct of the FootPrintRoofWrapper class.
public FootPrintRoofWrapper ( FootPrintRoof roof ) : System
roof FootPrintRoof The footprint roof which will be edited in a PropertyGrid.
return System
        public FootPrintRoofWrapper(FootPrintRoof roof)
        {
            m_roof = roof;
            m_roofLines = new List<FootPrintRoofLine>();
            ModelCurveArrArray curveloops = m_roof.GetProfiles();

            foreach(ModelCurveArray curveloop in curveloops)
            {
                foreach(ModelCurve curve in curveloop)
                {
                    m_roofLines.Add(new FootPrintRoofLine(m_roof, curve));
                }
            }

            FootPrintRoofLineConverter.SetStandardValues(m_roofLines);
            m_footPrintLine = m_roofLines[0];

            m_boundingbox = m_roof.get_BoundingBox(Revit.SDK.Samples.NewRoof.CS.Command.ActiveView);
        }