Пример #1
0
        /// <summary>
        /// Построение модели
        /// </summary>
        /// <param name="sender">Отправитель события</param>
        /// <param name="e">Параметры</param>
        private void buildHouseButton_Click(object sender, EventArgs e)
        {
            _inventorApi = new InventorApi();
            _houseModel = new HouseModel(_houseProperties, _inventorApi);
            if (ChangeArcComboBox.SelectedIndex == 0)
            { _houseModel.Build(_houseProperties); }
            if (ChangeArcComboBox.SelectedIndex == 1)
            {
                _houseModel.Build(_houseProperties);
                _houseModel.BuildArc(_houseProperties);

            }
        }
Пример #2
0
        /// <summary>
        /// Построение модели
        /// </summary>
        /// <param name="sender">Отправитель события</param>
        /// <param name="e">Параметры</param>


        private void buildHouseButton_Click(object sender, EventArgs e)
        {
            _inventorApi = new InventorApi();
            _houseModel  = new HouseModel(_houseProperties, _inventorApi);
            if (ChangeArcComboBox.SelectedIndex == 0)
            {
                _houseModel.Build(_houseProperties);
            }
            if (ChangeArcComboBox.SelectedIndex == 1)
            {
                _houseModel.Build(_houseProperties);
                _houseModel.BuildArc(_houseProperties);
            }
        }
Пример #3
0
 private void RunInventorButton_Click(object sender, EventArgs e)
 {
     _inventorApi = new InventorApi();
 }
Пример #4
0
 /// <summary>
 /// Конструктор с входными параметрами модели
 /// </summary>
 /// <param name="houseProperties">Параметры модели</param>
 /// <param name="inventorApi"></param>
 public HouseModel(HouseProperties houseProperties, InventorApi inventorApi)
 {
     _houseProperties    = houseProperties;
     _api                = inventorApi;
     InventorApplication = inventorApi.InventorApplication;
 }
Пример #5
0
 private void RunInventorButton_Click(object sender, EventArgs e)
 {
     _inventorApi = new InventorApi();
 }
Пример #6
0
 /// <summary>
 /// Конструктор с входными параметрами модели
 /// </summary>
 /// <param name="houseProperties">Параметры модели</param>
 /// <param name="inventorApi"></param>
 public HouseModel(HouseProperties houseProperties, InventorApi inventorApi)
 {
     _houseProperties = houseProperties;
     _api = inventorApi;
     InventorApplication = inventorApi.InventorApplication;
 }