Robot Structural Analysis Api Direct

IRobotApplication app = new RobotApplication(); app.Project.New(IRobotProjectType.I_PT_SLAB, true); // clear existing IRobotStructure structure = app.Project.Structure;

for (int i = 0; i <= divisionPoints; i++) double coord = (double)i / divisionPoints; // 0 to 1 along bar IRobotBarResult result = resServer.GetBarResult(barId, 1, coord, IRobotBarResultType.I_BRT_LOCAL); double my = result.My; // bending moment if (my > maxMy) maxMy = my; robot structural analysis api

using RobotOM; public class SimpleRSAExample IRobotApplication app = new RobotApplication(); app

Console.WriteLine($"Maximum My on bar barId: maxMy kNm"); // Optional: save file app.Project.SaveAs(@"C:\Temp\portal_frame.rtd"); // Cleanup System.Runtime.InteropServices.Marshal.ReleaseComObject(app); IRobotApplication app = new RobotApplication()

// Run linear analysis IRobotAnalysis analysis = app.Project.Analysis; analysis.Case = 1; analysis.Analyze();