I would like to use API to open a .rtd file, get the bars table and collect information from it (for each bar, sart and end node, section, material, gamma angle, bar type). What is the syntax for that ?
Thanks
Guillaume
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
I would like to use API to open a .rtd file,
robotapplication.Project.Open
get the bars table and collect information from it (for each bar, sart and end node, section, material, gamma angle, bar type). What is the syntax for that ?
This way only by saving to csv file.
Example:
I suggest just to get bar collection and get data from there. Example for steel members:
Dim Bar As RobotBar Dim Sec As RobotBarSection Dim BarCol As RobotBarCollection Dim Mat As RobotLabel Dim BarType As RobotLabel ..... For i = 1 To BarCol.Count Set Bar = BarCol.Get(i) Set Sec = Bar.GetLabel(I_LT_BAR_SECTION) Set Mat = Bar.GetLabel(I_LT_MATERIAL) Set BarType = Bar.GetLabel(I_LT_MEMBER_TYPE) Cells((7 + i), 1) = Bar.Number Cells((7 + i), 2) = Sec.Name Cells((7 + i), 3) = Bar.StartNode Cells((7 + i), 4) = Bar.EndNode Cells((7 + i), 5) = Mat.Name Cells((7 + i), 6) = Bar.Gamma Cells((7 + i), 7) = BarType.Name
Thanks, I'll try this.
And to get results (displacements, forces, stresses, reactions, ...), which classes are to be used ?