Maintain the appearance of the 2D projection of the curtain grid and its behaviors
コード例 #1
0
ファイル: GridGeometry.cs プロジェクト: AMEE/revit
 /// <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>();
 }
コード例 #2
0
ファイル: GridCoordinates.cs プロジェクト: AMEE/revit
        /// <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;
        }