Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

EtabsApi: Specify code to load pattern

Status
Not open for further replies.
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.
Back
Top