|
26 | 26 | from RFEM.LoadCasesAndCombinations.loadCasesAndCombinations import LoadCasesAndCombinations |
27 | 27 | from RFEM.LoadCasesAndCombinations.designSituation import DesignSituation |
28 | 28 | from RFEM.LoadCasesAndCombinations.loadCombination import LoadCombination |
| 29 | +from RFEM.LoadCasesAndCombinations.combinationWizard import CombinationWizard |
29 | 30 | from RFEM.LoadCasesAndCombinations.loadCase import LoadCase |
30 | 31 | from RFEM.LoadCasesAndCombinations.staticAnalysisSettings import StaticAnalysisSettings |
31 | 32 | from RFEM.Loads.nodalLoad import NodalLoad |
@@ -141,7 +142,7 @@ def main(): |
141 | 142 | if lst: |
142 | 143 | if 'SteelHallExcel' in lst[0]: |
143 | 144 | print('Closing old Model...!') |
144 | | - index = lst.index('SteelHallExcel') |
| 145 | + index = lst[0].index('SteelHallExcel') |
145 | 146 | connectionGlobals.client.service.close_model(index, False) |
146 | 147 | print('Creating new model...!') |
147 | 148 | Model(True, 'SteelHallExcel.rf6', delete_all= True) |
@@ -379,8 +380,8 @@ def main(): |
379 | 380 | LoadCase.StaticAnalysis(4, 'Wind-Load_x', True, 1, ActionCategoryType.ACTION_CATEGORY_WIND_QW, [False]) |
380 | 381 | LoadCase.StaticAnalysis(5, 'Wind-Load_y', True, 1, ActionCategoryType.ACTION_CATEGORY_WIND_QW, [False]) |
381 | 382 |
|
382 | | - DesignSituation(1, DesignSituationType.DESIGN_SITUATION_TYPE_EQU_PERMANENT_AND_TRANSIENT) |
383 | | - LoadCombination(1, AnalysisType.ANALYSIS_TYPE_STATIC, 1, '', 1) |
| 383 | + CombinationWizard(1, consider_imperfection_case=False, params={'structure_modification_enabled':'False'} ) |
| 384 | + DesignSituation(1, DesignSituationType.DESIGN_SITUATION_TYPE_EQU_PERMANENT_AND_TRANSIENT, params={'combination_wizard': 1}) |
384 | 385 |
|
385 | 386 | # Creating Loads for LC2:Live Load |
386 | 387 | n, k, l = 0, 0, 0 |
@@ -437,7 +438,7 @@ def main(): |
437 | 438 |
|
438 | 439 | # Calculation |
439 | 440 | print("Calculation started...") |
440 | | - #Model.clientModel.service.generate_load_cases_and_combinations() |
| 441 | + Model.clientModel.service.generate_load_cases_and_combinations() |
441 | 442 | Calculate_all() |
442 | 443 | print("Done!") |
443 | 444 |
|
|
0 commit comments