Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

EtabsApi: Specify code to load pattern

Status
Not open for further replies.

Ganesh_maka

Structural
Feb 28, 2024
4
Can you help how to define the code book? , and how to assign that code to load pattern
 
Replies continue below

Recommended for you

Ganesh,

What have you tried? What do you mean by specify code for load pattern?

ETABs_API_khhinr.png




S&T -
 
I added the load pattern for that I want to add the IS 1893:2016 code for that load pattern and I am using SetAutoSeismicCode to add the code, but it's not working

ret= SapModel.LoadPatterns.Add("EQy",5)
code_name = "IS 1893:2016"
ret = SapModel.LoadPatterns.GetAutoSeismicCode("EQy", code_name)

# Check if seismic code retrieval was successful
if ret == 0:
print("Seismic code retrieved successfully for 'EQy'.")
# Set seismic parameters if code retrieval was successful
ret = SapModel.LoadPatterns.AutoSeismic.SetAutoSeismicCode("EQy", "IS 1893:2016")
if ret == 0:
print("Seismic parameters set successfully for 'EQy'.")
else:
print("Failed to set seismic parameters for 'EQy'.")
else:
print("Failed to retrieve seismic code for 'EQy'.")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor