With this solution, we do not obtain any response from computer, there is no error but there is no solution, compilation is blocked.
We have this code and it works for one bar, for one load case:
Dim robApp As RobotOM.IRobotApplication = New RobotOM.RobotApplication
Dim BarCol As RobotOM.RobotBarCollection
Dim Bar As RobotOM.IRobotBar
Dim CasCol As RobotOM.RobotCaseCollection
Dim caso As RobotOM.IRobotCase
BarCol = robApp.Project.Structure.Bars.GetAll()
For i = 1 To BarCol.Count
Bar = BarCol.Get(i)
For ii = 1 To CasCol.Count
caso = CasCol.Get(ii)
For iii = 0 To BarLong Step 1
BSD = BarStressServer.Value(BarNumber, CasoNumber, (iii / BarLong) )
BarSmax = System.Math.Round(BSD.Smax / 1000000, 2)
BarSmin = System.Math.Round(BSD.Smin / 1000000, 2)
BarSmaxMy = System.Math.Round(BSD.SmaxMY / 1000000, 2
BarSmaxMz = System.Math.Round(BSD.SmaxMZ / 1000000, 2)
BarSminMy = System.Math.Round(BSD.SminMY / 1000000, 2)
BarSminMz = System.Math.Round(BSD.SminMZ / 1000000, 2)
BarFxSx = System.Math.Round(BSD.FXSX / 1000000, 2)
BarTy = System.Math.Round(BSD.ShearY / 1000000, 2)
BarTz = System.Math.Round(BSD.ShearZ / 1000000, 2)
BarT = System.Math.Round(BSD.Torsion / 1000000, 2)
Next iii
Next ii
Next i
We need to obtain the maximum stress for all bar and each load case.
Thank you again