Exemplo n.º 1
0
        /// <summary>
        /// The construct of the FootPrintRoofWrapper class.
        /// </summary>
        /// <param name="roof">The footprint roof which will be edited in a PropertyGrid.</param>
        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);
        }
Exemplo n.º 2
0
 /// <summary>
 /// The construct of the FootPrintRoofLine class.
 /// </summary>
 /// <param name="roof">The footprint roof which the foot print data belong to.</param>
 /// <param name="curve">The model curve data which the foot print data stand for.</param>
 public FootPrintRoofLine(FootPrintRoof roof, ModelCurve curve)
 {
     m_roof        = roof;
     m_curve       = curve;
     m_boundingbox = m_roof.get_BoundingBox(Revit.SDK.Samples.NewRoof.CS.Command.ActiveView);
 }
Exemplo n.º 3
0
 /// <summary>
 /// The construct of the FootPrintRoofLine class.
 /// </summary>
 /// <param name="roof">The footprint roof which the foot print data belong to.</param>
 /// <param name="curve">The model curve data which the foot print data stand for.</param>
 public FootPrintRoofLine(FootPrintRoof roof, ModelCurve curve)
 {
     m_roof = roof;
     m_curve = curve;
     m_boundingbox = m_roof.get_BoundingBox(Revit.SDK.Samples.NewRoof.CS.Command.ActiveView);
 }
Exemplo n.º 4
0
        /// <summary>
        /// The construct of the FootPrintRoofWrapper class.
        /// </summary>
        /// <param name="roof">The footprint roof which will be edited in a PropertyGrid.</param>
        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);
        }