HandyPrayogo
Civil/Environmental
- May 20, 2022
- 4
Hi, I have been experimenting with optimizing truss using metaheuristic algorithm using python.
I have been able to open ETABS, assign all frame member with the available option using and index, running the model, and extracting the result.
However, I encountered some unintended result. When I tried to assign for example:
The ETABS will result in all member using the option index 15 (the last one).
I suspect, it might be because I use:
it assign all member instead of targeted member, the function syntax is shown here:
I'm not sure about the last input to the function, since the CSI API does not provide python example.
I attached my model with a simple python code to show my problem. I would be very grateful if somebody could help me fix this problem
Thank you.
I have been able to open ETABS, assign all frame member with the available option using and index, running the model, and extracting the result.
However, I encountered some unintended result. When I tried to assign for example:
Python:
# the combination of frame that will be assign to each member (0-15)
x=np.array([3, 2, 3, 2, 1, 6, 2, 1, 2, 6, 1, 3, 2, 1, 5, 6, 1, 3, 1, 5, 1, 15])

I suspect, it might be because I use:
Python:
sapModel.DesignSteel.SetDesignSection(framename,section_type,False,0)

I'm not sure about the last input to the function, since the CSI API does not provide python example.
I attached my model with a simple python code to show my problem. I would be very grateful if somebody could help me fix this problem
Thank you.