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 JAE 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
Joined
Feb 28, 2024
Messages
4
Location
IN
Can you help how to define the code book? , and how to assign that code to load pattern
 
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

Back
Top