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; }
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; }
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; }
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; }
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"); }
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"); }
/// <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; }
/// <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; }
/// <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; }
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; }