Load Case - Component forces table look up

Load Case - Component forces table look up

skellyRSA2023
Collaborator Collaborator
962 Views
7 Replies
Message 1 of 8

Load Case - Component forces table look up

skellyRSA2023
Collaborator
Collaborator

Hi. Within robot is there a way to look up a specific case component load combination in robot in the forces table i.e. say under ULS load combinations i have 5000 case components which are a specific load case referenced to a node or member. For example in graphical format you can show a specific case component and type the component number in to show graphically the forces diagrams for that specific component. however if i look at forces in table format and select a member and load combination such as ULS, it gives me all forces for each member/node/case/component, there is 5000+ component for a particular member hence i want to be able select say componet 2661 for example. can this be done in table format rather than scrolling through all the components to find the particular one you are looking for? i.e. can i filter table to a particular component or components. see attached snapshot from table i am referring to. Any help would be appreciated. 

 

S. 

0 Likes
Accepted solutions (2)
963 Views
7 Replies
Replies (7)
Message 2 of 8

Romanich
Mentor
Mentor
Accepted solution

Hi @skellyRSA2023 ,

 

Not possible for components of automatic combinations.

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.

Roman Zhelezniak, P.Eng.

Robot Evangelist & Passionate Civil Structural Engineer

LinkedIn | Robot & Хобот | App Store for Robot
EESignature


0 Likes
Message 3 of 8

skellyRSA2023
Collaborator
Collaborator

Thanks for the reply. I am trying to extract worse case loading at ULS for a particular steel connection, however if i choose ULS and extract the forces, as far as I am a aware it is giving the forces for the top and bottom of the envelope. But if i have a steel connection say with three members framing into it and a choose the top and bottom ULS combination envelope forces for the end of that member they may not necessity coexist with the end forces ULS forces for another member framing into the same connection, so as all the forces applied to the connection are in equilibrium so to speak. 

0 Likes
Message 4 of 8

Stephane.kapetanovic
Mentor
Mentor

hi @skellyRSA2023 

Here is some code that should allow you to filter the results of an automatic combination by component.

Type ComponentEnvelope
    MinValue As Double
    MinBar As Long
    MinPoint As Long
    MinCase As Long
    MinCaseComp As Long
    MinValues(5) As Double
    MaxValue As Double
    MaxBar As Long
    MaxPoint As Long
    MaxCase As Long
    MaxCaseComp As Long
    MaxValues(5) As Double
End Type

Public Sub ExtractAndFilterByComponent()
  Dim Robapp As RobotApplication: Set Robapp = New RobotApplication

  Dim ps As RobotSelection, cs As RobotSelection
  With Robapp.Project.Structure.Selections
    Set ps = .Get(I_OT_BAR)
    Set cs = .Get(I_OT_CASE)
  End With

  tb = Array(165, 166, 167, 168, 169, 170)
  cnt = UBound(tb)

  Dim qp As RobotResultQueryParams
  Set qp = Robapp.CmpntFactory.Create(I_CT_RESULT_QUERY_PARAMS)
  With qp
    .SetParam I_RPT_BAR_DIV_COUNT, 2
    .Selection.Set I_OT_BAR, ps
    .Selection.Set I_OT_CASE, cs
    .ResultIds.SetSize cnt + 1: For i = 0 To cnt: .ResultIds.Set i + 1, tb(i): Next i
  End With
 
  Dim env(5) As ComponentEnvelope
  For i = 0 To 5
    env(i).MinValue = 1.79769313486231E+308: env(i).MaxValue = -1.79769313486231E+308
  Next i

  Dim RowSet As New RobotResultRowSet, Row As RobotResultRow, Res As IRobotResultQueryReturnType
  Dim ok As Boolean, v(5) As Double, p As Long, pt As Long, c As Long, cc As Long
  Do
    Res = Robapp.Project.Structure.Results.Query(qp, RowSet)
    ok = RowSet.MoveFirst
    
    While ok
      Set Row = RowSet.CurrentRow
      cc = Row.GetParam(I_RPT_LOAD_CASE_CMPNT)
      Select Case cc
        Case 1, 15, 21, 28, 30 ' Make your component selection here
      Case Else
        GoTo nextStep
      End Select
      p = Row.GetParam(I_RPT_BAR): pt = Row.GetParam(I_RPT_BAR_DIV_POINT): c = Row.GetParam(I_RPT_LOAD_CASE)
      For i = 0 To 5
        On Error Resume Next
          v(i) = Row.GetValue(tb(i)): If Err.Number <> 0 Then v(i) = 0
        On Error GoTo 0
      Next i
      
      For i = 0 To 5
        If v(i) < env(i).MinValue Then
          env(i).MinValue = v(i): env(i).MinBar = p: env(i).MinPoint = pt: env(i).MinCase = c: env(i).MinCaseComp = cc
          For j = 0 To 5: env(i).MinValues(j) = v(j): Next j
        End If
        If v(i) > env(i).MaxValue Then
          env(i).MaxValue = v(i): env(i).MaxBar = p: env(i).MaxPoint = pt: env(i).MaxCase = c: env(i).MaxCaseComp = cc
          For j = 0 To 5: env(i).MaxValues(j) = v(j): Next j
        End If
      Next i
nextStep:
      ok = RowSet.MoveNext
    Wend
  Loop While Res = I_RQRT_MORE_AVAILABLE
  
  Debug.Print "Bar/Pt/Cse/Cmp         " & _
              Left("FX (N)      ", 14) & " " & _
              Left("FY (N)      ", 14) & " " & _
              Left("FZ (N)     ", 14) & " " & _
              Left("MX (Nm)     ", 12) & " " & _
              Left("MY (Nm)     ", 12) & " " & _
              Left("MZ (Nm)     ", 12)
  Debug.Print String(95, "-")
  
  For i = 0 To 5
    Dim minLine As String
    minLine = Right(Space(4) & env(i).MinBar, 4) & "/" & _
              Right(Space(2) & env(i).MinPoint, 2) & "/" & _
              Right(Space(3) & env(i).MinCase, 3) & "/" & _
              Right(Space(3) & env(i).MinCaseComp, 3) & "  "
    
    For j = 0 To 5
      Dim minVal As String
      minVal = Format(env(i).MinValues(j), "0.00"): If j = i Then minVal = minVal & "<<"
      minLine = minLine & Right(Space(12) & minVal, 12) & " "
    Next j
    
    Debug.Print minLine
    
    Dim maxLine As String
    maxLine = Right(Space(4) & env(i).MaxBar, 4) & "/" & _
              Right(Space(2) & env(i).MaxPoint, 2) & "/" & _
              Right(Space(3) & env(i).MaxCase, 3) & "/" & _
              Right(Space(3) & env(i).MaxCaseComp, 3) & "  "
    
    For j = 0 To 5
      Dim maxVal As String
      maxVal = Format(env(i).MaxValues(j), "0.00"): If j = i Then maxVal = maxVal & ">>"
      maxLine = maxLine & Right(Space(12) & maxVal, 12) & " "
    Next j
    Debug.Print maxLine
  Next i
End Sub

Results

Bar/Pt/Cse/Cmp         FX (N)       FY (N)       FZ (N)      MX (Nm)      MY (Nm)      MZ (Nm)     
-----------------------------------------------------------------------------------------------
   4/ 2/  6/ 30     2539.84<<     -3737.09      -124.84        -0.40      -416.19     12444.69 
   4/ 1/  6/  1    39771.27>>        69.00      -667.33         0.00      1112.15       115.00 
   4/ 1/  6/ 30       2937.33   -7487.09<<      -124.84        -0.40       208.01    -15615.74 
   4/ 1/  6/  1      39771.27      69.00>>      -667.33         0.00      1112.15       115.00 
   4/ 1/  6/  1      39771.27        69.00    -667.33<<         0.00      1112.15       115.00 
   4/ 1/  6/ 28       2984.61        12.91    7375.11>>         0.40    -15547.33        21.51 
   4/ 1/  6/ 21      11338.68     -7472.59      -265.08      -0.40<<       441.72    -15591.57 
   4/ 1/  6/ 15      27792.21        56.52      6953.33       0.40>>    -14844.41        94.19 
   4/ 1/  6/ 28       2984.61        12.91      7375.11         0.40  -15547.33<<        21.51 
   4/ 2/  6/ 28       2587.12        12.91      3625.11         0.40   11953.21>>       -43.03 
   4/ 1/  6/ 30       2937.33     -7487.09      -124.84        -0.40       208.01  -15615.74<< 
   4/ 2/  6/ 30       2539.84     -3737.09      -124.84        -0.40      -416.19   12444.69>> 

Best Regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
Message 5 of 8

Stephane.kapetanovic
Mentor
Mentor
Accepted solution

Here is a spreadsheet tool for extracting concurrent force envelopes

Quick & simple:

  • Select bars/cases directly from your Robot model
  • Filter by case component (e.g. "1 15 21 28 30" or "all")
  • Get min/max for Fx, Fy, Fz, Mx, My, Mz with concurrent values
  • Automatic units (kN, kips, etc.)

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
Message 6 of 8

skellyRSA2023
Collaborator
Collaborator

Thanks Stephane, thats makes thing much easier. 👍

Message 7 of 8

rokas_varanauskas
Advocate
Advocate

Isn't this already "built into" forces table in version 2026? See screenshots below for combination of two moving load cases in Force envelope table:

Screenshot 2026-03-13 100408.pngScreenshot 2026-03-13 095141.png

 

Message 8 of 8

Stephane.kapetanovic
Mentor
Mentor

hi @rokas_varanauskas 

The code was posted here on the forum to illustrate a specific case of a software gateway that transfers the min/max envelope of forces for a given bar, knowing that the other bars must be in the concomitant case to maintain internal force balance. The program is not meant to replace existing functions but rather to act as a substitute, and it is compatible with all version types.

Note that XML remains a widely used format and is still worth learning today.

If you’re familiar with this type of load transfer, you’ll quickly see what we mean.

using System;
using System.Collections.Generic;
using System.Xml.Linq;

public struct Force {
    public int Case;
    public double N, Qy, Qz, Mx, My, Mz;
}
public static IEnumerable<Force> ReadForces(string file) {
    var doc = XDocument.Load(file);
    foreach (var e in doc.Descendants("SectionResultBase")) {
        yield return new Force {
            Case = (int)e.Element("Loading").Element("Id"),
            N  = (double)e.Element("N"),
            Qy = (double)e.Element("Qy"),
            Qz = (double)e.Element("Qz"),
            Mx = (double)e.Element("Mx"),
            My = (double)e.Element("My"),
            Mz = (double)e.Element("Mz")
        };
    }
}

Thank you for providing the tabulated solution for the 2026 version.

Best Regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature