Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API RSA - bars table

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
917 Views, 4 Replies

API RSA - bars table

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

4 REPLIES 4
Message 2 of 5
Rafal.Gaweda
in reply to: Anonymous

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:

http://forums.autodesk.com/t5/Robot-Structural-Analysis/API-Exporting-modal-harmonic-load-case-getti...

 

http://forums.autodesk.com/t5/Robot-Structural-Analysis/ROBOT-API-VBA-Panel-cuts-and-table-generatio...

 

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

 

 

 



Rafal Gaweda
Message 3 of 5
Anonymous
in reply to: Rafal.Gaweda

Thanks, I'll try this.

And to get results (displacements, forces, stresses, reactions, ...), which classes are to be used ?

Message 4 of 5
Rafal.Gaweda
in reply to: Anonymous

RobApp.Project.Structure.Results.Nodes.Displacements...
RobApp.Project.Structure.Results.Nodes.Reactions....
RobApp.Project.Structure.Results.Bars.Forces....
RobApp.Project.Structure.Results.Bars.Stresses...


Rafal Gaweda
Message 5 of 5
Anonymous
in reply to: Rafal.Gaweda

Thanks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report