Exemplo n.º 1
0
        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="commandData">
        /// object which contains reference of Revit Application
        /// </param>
        public MyDocument(ExternalCommandData commandData)
        {
            m_commandData = commandData;
            m_uiDocument  = m_commandData.Application.ActiveUIDocument;
            m_document    = m_uiDocument.Document;

            // initialize the curtain system data
            m_systemData = new CurtainSystem.SystemData(this);

            // get the curtain system type of the active Revit document
            GetCurtainSystemType();
        }
Exemplo n.º 2
0
      /// <summary>
      /// constructor
      /// </summary>
      /// <param name="commandData">
      /// object which contains reference of Revit Application
      /// </param>
      public MyDocument(ExternalCommandData commandData)
      {
         m_commandData = commandData;
         m_uiDocument = m_commandData.Application.ActiveUIDocument;
         m_document = m_uiDocument.Document;

         // initialize the curtain system data
         m_systemData = new CurtainSystem.SystemData(this);

         // get the curtain system type of the active Revit document
         GetCurtainSystemType();
      }