hi @tuonguyen39HYC
you should read these topics first :
[EC8 & Python code] , (API) Analysis parameters - Combination Sign - Changing spectral case main mode , RSA : API - Algorithme de Lanczos par blocs
Best Regards
Lastest Version
RobApp = new RobotApplication(); if (!IsReady(ref RobApp)) return;
RobotProject Project = RobApp.Project;
RobotCaseServer Cases = Project.Structure.Cases;
// Preferences
RobotProjectPreferences Preferences = Project.Preferences;
//string codetxt = Preferences.GetActiveCode(IRobotCodeType.I_CT_SEISMIC_LOADS);
Preferences.SetActiveCode(I_CT_SEISMIC_LOADS, "ASCE 7-10");
// Seismic Case
RobotSimpleCase RCase;
RCase = Cases.CreateSimple(Cases.FreeNumber, "Modal", I_CN_PERMANENT, I_CAT_DYNAMIC_MODAL);
RCase = Cases.CreateSimple(Cases.FreeNumber, "Seismic", I_CN_SEISMIC, I_CAT_STATIC_ELF_SEISMIC);
string code = RCase.GetSeismicCode();
IRobotSELFSeismic_ASCE_7_10_Params ASCE_7_10_Params = RCase.GetAnalysisParams();
//ASCE_7_10_Params.SiteClass = I_SSSCT_ASCE_7_10_D;
//ASCE_7_10_Params.StructureTypeX = I_SSST_ASCE_7_10_STEEL_FRAMES;
//ASCE_7_10_Params.I = 1;
//ASCE_7_10_Params.Ss = 1;
//ASCE_7_10_Params.S1 = 1;
//ASCE_7_10_Params.TL = 12;
//ASCE_7_10_Params.R = 8;
RCase.SetAnalysisParams(ASCE_7_10_Params);
RobApp = null;
Stéphane Kapetanovic
Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
