Generate ASCE7-10 (ASCE7-16) Seismic (ELF method) through API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have some problems when I try coding to generate ASCE 7-10 Seismic following ELF method in API. Here is my code with C#, please help me debug or is there anyway to generate those seismic load types (see the attached picture) ?
Any help much appreciated.
The code below:
RobotSimpleCase RCase;
IRobotSELFSeismic_ASCE_7_10_Params ASParamms;
robotApp.Project.Preferences.SetActiveCode(IRobotCodeType.I_CT_SEISMIC_LOADS, "ASCE 7-10");
RCase = robotApp.Project.Structure.Cases.CreateSimple(robotApp.Project.Structure.Cases.FreeNumber, "Modal", IRobotCaseNature.I_CN_PERMANENT, IRobotCaseAnalizeType.I_CAT_DYNAMIC_MODAL);
RCase = robotApp.Project.Structure.Cases.CreateSimple(robotApp.Project.Structure.Cases.FreeNumber, "Seismic", IRobotCaseNature.I_CN_SEISMIC, IRobotCaseAnalizeType.I_CAT_STATIC_ELF_SEISMIC);
ASParamms = RCase.GetAnalysisParams();
ASParamms.I = 1;
ASParamms.Ss = 1;
ASParamms.S1 = 1;
ASParamms.TL = 12;
ASParamms.SiteClass = IRobotSELFSeismic_ASCE_7_10_SiteClassType.I_SSSCT_ASCE_7_10_D;
ASParamms.R = 8;
ASParamms.StructureTypeX = IRobotSELFSeismic_ASCE_7_10_StructureType.I_SSST_ASCE_7_10_STEEL_FRAMES;
RCase.SetAnalysisParams(ASParamms);