Maintain the appearance of the 2D projection of the curtain grid and its behaviors
Exemple #1
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="myDoc">
 /// the document of the sample
 /// </param>
 public GridGeometry(MyDocument myDoc)
 {
     m_myDocument = myDoc;
      m_commandData = myDoc.CommandData;
      m_activeDocument = myDoc.Document;
      m_gridProperties = new GridProperties();
      //m_activeGrid = grid;
      m_drawing = new GridDrawing(myDoc, this);
      m_uGridLines = new List<CurtainGridLine>();
      m_vGridLines = new List<CurtainGridLine>();
      m_GridVertexesXYZ = new List<Autodesk.Revit.DB.XYZ>();
 }
Exemple #2
0
        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="myDoc">
        /// the document of this sample
        /// </param>
        /// <param name="drawing">
        /// the GridDrawing data used in the dialog
        /// </param>
        public GridCoordinates(MyDocument myDoc, GridDrawing drawing)
        {
            m_myDocument = myDoc;

             if (null == drawing)
             {
            MessageBox.Show("Error! There's no grid information in the curtain wall.");
             }
             m_drawing = drawing;
             drawing.Coordinates = this;
        }