Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Etabs API with python

Status
Not open for further replies.

M.FZL

Student
Joined
Feb 17, 2022
Messages
1
Location
IR
Hi.I'm trying to assign loads to area objects. As you know there are different load values for different areas and stories in a building.
For example the value of dead load is 5 kN/m2 for stories and 5.5 kN/m2 for the roof.
Here is some code that I developed, but it assigns to all of area objects of my model(the model has 80 area objects)and of course,the name of these area objects are not in order to their floors, so I can't divide this code to a few subsets.
Python:
for i in range(1,81):
    SapModel.AreaObj.SetLoadUniform(str(i),"SDEAD",5.3,10)
Is there any solution to assign a specified load to area objects on a specific floor?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top