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'.")