599x
002220
2024-01-16

Results

A successfuly computed model object holds all the infomation of the model from its geometry definition to the calculated results of the analysis.

For accessing the status of a model, the approach can be thought of as a two-step approach. Firstly we request the information using an appropriate function:



modelStatus = Model.clientModel.service.get_model_info()

The defined modelStatus object now contains attributes, which can be accessed using dot notation. Some examples below:




print("Model is calculated") if modelStatus.property_has_results else print("Model is not calculated")

print("Model contains printout report") if modelStatus.property_has_printout_report else print("Model has not printout report")

print ("Model contains " + str(modelStatus.property_node_count) + " nodes")

print ("Model contains " + str(modelStatus.property_line_count) + " lines")

print ("Model contains " + str(modelStatus.property_member_count) + " members")

With regards to results, .csv and .xml file formats have proven to be useful especially in the view of post-processing. The data rich results from the calculation can be exported and worked with as shown below:




ExportResulTablesWithDetailedMembersResultsToCsv()

ExportResulTablesWithDetailedMembersResultsToXML()

ParseCSVResultsFromSelectedFileToDict()

ParseXMLResultsFromSelectedFileToDict()

Parent Chapter