Наследование: IExternalCommand
Пример #1
1
        Autodesk.Revit.ApplicationServices.Application m_revit; // Store the reference of revit

        #endregion Fields

        #region Constructors

        // Methods
        /// <summary>
        /// Default constructor of LoadCombinationDeal
        /// </summary>
        public LoadCombinationDeal(Loads dataBuffer)
        {
            m_dataBuffer = dataBuffer;
            m_revit = dataBuffer.RevitApplication;
            UIApplication uiapplication = new UIApplication(m_revit);
            m_document = uiapplication.ActiveUIDocument.Document;
        }
Пример #2
0
        Loads m_dataBuffer;   // A reference of Loads.

        /// <summary>
        /// Constructor of LoadsForm
        /// </summary>
        /// <param name="dataBuffer"> A reference of Loads class </param>
        public LoadsForm(Loads dataBuffer)
        {
            // Required for Windows Form Designer support
            InitializeComponent();

            //Get a reference of LoadsForm
            m_dataBuffer = dataBuffer;
        }
Пример #3
0
        Autodesk.Revit.DB.Document m_document;                  // Store the reference of document

        // Methods
        /// <summary>
        /// Default constructor of LoadCombinationDeal
        /// </summary>
        public LoadCombinationDeal(Loads dataBuffer)
        {
            m_dataBuffer = dataBuffer;
            m_revit      = dataBuffer.RevitApplication;
            UIApplication uiapplication = new UIApplication(m_revit);

            m_document = uiapplication.ActiveUIDocument.Document;
        }
Пример #4
0
        Loads m_dataBuffer; // A reference of Loads.

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Constructor of LoadsForm
        /// </summary>
        /// <param name="dataBuffer"> A reference of Loads class </param>
        public LoadsForm(Loads dataBuffer)
        {
            // Required for Windows Form Designer support
            InitializeComponent();

            //Get a reference of LoadsForm
            m_dataBuffer = dataBuffer;
        }
Пример #5
0
        List <string> m_newLoadNaturesName;                     //store all the new nature's name that should be added

        // Methods
        /// <summary>
        /// Default constructor of LoadCaseDeal
        /// </summary>
        public LoadCaseDeal(Loads dataBuffer)
        {
            m_dataBuffer         = dataBuffer;
            m_revit              = dataBuffer.RevitApplication;
            m_newLoadNaturesName = new List <string>();

            m_newLoadNaturesName.Add("EQ1");
            m_newLoadNaturesName.Add("EQ2");
            m_newLoadNaturesName.Add("W1");
            m_newLoadNaturesName.Add("W2");
            m_newLoadNaturesName.Add("W3");
            m_newLoadNaturesName.Add("W4");
            m_newLoadNaturesName.Add("Other");
        }
Пример #6
0
        Autodesk.Revit.ApplicationServices.Application m_revit; // Store the reference of revit application

        #endregion Fields

        #region Constructors

        // Methods
        /// <summary>
        /// Default constructor of LoadCaseDeal
        /// </summary>
        public LoadCaseDeal(Loads dataBuffer)
        {
            m_dataBuffer = dataBuffer;
            m_revit = dataBuffer.RevitApplication;
            m_newLoadNaturesName = new List<string>();

            m_newLoadNaturesName.Add("EQ1");
            m_newLoadNaturesName.Add("EQ2");
            m_newLoadNaturesName.Add("W1");
            m_newLoadNaturesName.Add("W2");
            m_newLoadNaturesName.Add("W3");
            m_newLoadNaturesName.Add("W4");
            m_newLoadNaturesName.Add("Other");
        }
Пример #7
0
 /// <summary>
 /// Constructor with Set = false, Name="",
 /// This should not be called.
 /// </summary>
 /// <param name="dataBuffer">The reference of Loads</param>
 public UsageMap(Loads dataBuffer)
 {
     m_dataBuffer = dataBuffer;
 }
Пример #8
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="dataBuffer">The reference of Loads</param>
 /// <param name="set">The value set to Set property</param>
 /// <param name="name">The value set to Name property</param>
 public UsageMap(Loads dataBuffer, Boolean set, String name)
 {
     m_dataBuffer = dataBuffer;
     m_set        = set;
     m_name       = name;
 }
Пример #9
0
 /// <summary>
 /// constructor with Set = false
 /// </summary>
 /// <param name="dataBuffer">The reference of Loads</param>
 /// <param name="name">The value set to Name property</param>
 public UsageMap(Loads dataBuffer, String name)
 {
     m_dataBuffer = dataBuffer;
     m_set        = false;
     m_name       = name;
 }
Пример #10
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="dataBuffer">The reference of Loads</param>
 /// <param name="set">The value set to Set property</param>
 /// <param name="name">The value set to Name property</param>
 public UsageMap(Loads dataBuffer, Boolean set, String name)
 {
     m_dataBuffer = dataBuffer;
     m_set = set;
     m_name = name;
 }
Пример #11
0
 /// <summary>
 /// constructor with Set = false
 /// </summary>
 /// <param name="dataBuffer">The reference of Loads</param>
 /// <param name="name">The value set to Name property</param>
 public UsageMap(Loads dataBuffer, String name)
 {
     m_dataBuffer = dataBuffer;
     m_set = false;
     m_name = name;
 }
Пример #12
0
        Boolean m_set; // Indicate the set column of Usage DataGridView control

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Constructor with Set = false, Name="",
        /// This should not be called.
        /// </summary>
        /// <param name="dataBuffer">The reference of Loads</param>
        public UsageMap(Loads dataBuffer)
        {
            m_dataBuffer = dataBuffer;
        }