Skip to content

Commit 1bdb48d

Browse files
Bugfix
1 parent 5b34fb2 commit 1bdb48d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Examples/SteelDesign/SteelDesignExcel.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from RFEM.LoadCasesAndCombinations.loadCasesAndCombinations import LoadCasesAndCombinations
2727
from RFEM.LoadCasesAndCombinations.designSituation import DesignSituation
2828
from RFEM.LoadCasesAndCombinations.loadCombination import LoadCombination
29+
from RFEM.LoadCasesAndCombinations.combinationWizard import CombinationWizard
2930
from RFEM.LoadCasesAndCombinations.loadCase import LoadCase
3031
from RFEM.LoadCasesAndCombinations.staticAnalysisSettings import StaticAnalysisSettings
3132
from RFEM.Loads.nodalLoad import NodalLoad
@@ -141,7 +142,7 @@ def main():
141142
if lst:
142143
if 'SteelHallExcel' in lst[0]:
143144
print('Closing old Model...!')
144-
index = lst.index('SteelHallExcel')
145+
index = lst[0].index('SteelHallExcel')
145146
connectionGlobals.client.service.close_model(index, False)
146147
print('Creating new model...!')
147148
Model(True, 'SteelHallExcel.rf6', delete_all= True)
@@ -379,8 +380,8 @@ def main():
379380
LoadCase.StaticAnalysis(4, 'Wind-Load_x', True, 1, ActionCategoryType.ACTION_CATEGORY_WIND_QW, [False])
380381
LoadCase.StaticAnalysis(5, 'Wind-Load_y', True, 1, ActionCategoryType.ACTION_CATEGORY_WIND_QW, [False])
381382

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})
384385

385386
# Creating Loads for LC2:Live Load
386387
n, k, l = 0, 0, 0
@@ -437,7 +438,7 @@ def main():
437438

438439
# Calculation
439440
print("Calculation started...")
440-
#Model.clientModel.service.generate_load_cases_and_combinations()
441+
Model.clientModel.service.generate_load_cases_and_combinations()
441442
Calculate_all()
442443
print("Done!")
443444

0 commit comments

Comments
 (0)