get_result_table#
- dlubal.api.rstab.Application.get_result_table(self, table, loading, model_id=None)#
Returns Table, which is just a convenience wrapper around a Pandas Dataframe. The Dataframe can be directly accessed as .data
- Parameters:
table (ResultTable) – Unique identifier of the result category type.
loading (ObjectId) – Filter to get only relevant results
model_id (ModelId | None) – Unique identifier of the model.
- Returns:
Requested results in form of table.
- Return type:
Table(data_frame)
Example
# Returns a specific result table as it appears in the desktop GUI in default state.
df_internal_forces_table = rstab_app.get_result_table(
table = rstab.results.ResultTable.STATIC_ANALYSIS_MEMBERS_INTERNAL_FORCES_TABLE,
loading= rstab.ObjectId(
no=1,
object_type=rstab.OBJECT_TYPE_DESIGN_SITUATION
)
).data
print(f"Internal Forces | Table:\n{df_internal_forces_table}")
// Returns a specific result table as it appears in the desktop GUI in default state.
DataFrame dfInternalForcesTable = await RstabApp.get_result_table(
table: Rstab.Results.ResultTable.StaticAnalysisMembersInternalForcesTable,
loading: new Rstab.ObjectId
{
No = 1,
ObjectType = Rstab.ObjectType.LoadCombination
}
);
Console.WriteLine($"\nInternal Forces | Table:\n{dfInternalForcesTable}");
Output:
Internal Forces | Table:
member_no node_no location_x tag n v_u v_v m_t m_u m_v specification
0 1 1 0.0 n -19066.179688 -4739.395996 -3815.224121 0.47769 0.00606 0.00157 CO9
1 1 1 0.0 n -52948.578125 -0.00941 0.21631 0.00413 0.0 0.0 CO2
2 1 1 0.0 v_y -35810.378906 4149.73877 4650.615234 0.08801 -0.001 -0.0004 CO10
3 1 1 0.0 v_y -32328.970703 -4926.749023 -3862.612061 0.50067 0.00666 0.0016 CO11
4 1 1 0.0 v_z -35810.378906 4149.73877 4650.615234 0.08801 -0.001 -0.0004 CO10
... ... ... ... ... ... ... ... ... ... ... ...
3083 52 <NA> 2.5 m_y_total_min -6350.475098 0.01969 0.00169 -0.10608 -13793.330078 3422.712891 CO4
3084 3 <NA> 2.607484 m_z_total_max -19454.119141 16.660049 0.0 4.71081 0.00006 16142.200195 CO11
3085 27 <NA> 2.607484 m_z_total_min -19539.050781 -16.664209 0.0 -4.58513 0.00004 -16146.089844 CO11
3086 <NA> <NA> <NA> total_max 129770.398438 12256.089844 24387.769531 57.243542 63268.46875 16142.200195 <NA>
3087 <NA> <NA> <NA> total_min -150674.40625 -12253.759766 -25263.300781 -57.243641 -13793.330078 -16146.089844 <NA>