Robot Structural Analysis Api -

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

// Assign supports (fixed) IRobotSupport support = structure.Supports.Create(1, IRobotSupportType.I_ST_FIXED); structure.Nodes.Get(1).Support = support; structure.Nodes.Get(2).Support = support; // actually second node, but let's fix both columns bottom robot structural analysis api

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(); app

// Create bars (steel section HEA200) structure.Bars.Create(1, 1, 2); // column left structure.Bars.Create(2, 2, 3); // beam structure.Bars.Create(3, 3, 4); // column right IRobotApplication app = new RobotApplication()

public void Run()

// Apply load case and load IRobotLoadCase loadCase = structure.Cases.Create(1, IRobotLoadCaseType.I_LCT_STATIC); loadCase.Name = "SelfWeight + Point Load"; IRobotLoadServer loadServer = app.Project.Loads; loadServer.Create(1, IRobotLoadType.I_LT_BAR_UNI, loadCase.Number); IRobotBarUniformLoad load = loadServer.Get(1, loadCase.Number) as IRobotBarUniformLoad; load.SetBar(2); // apply to beam load.PZ = -10.0; // kN/m downward

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