647x
002220
2022-01-12

Результаты

Успешно вычисленный объект модели содержит всю информацию о модели от задания ее геометрии до рассчитанных результатов анализа.

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:

<br>print("Model is calculated") if modelStatus.property_has_results else print("Model is not calculated")<br>
<br>print("Model contains printout report") if modelStatus.property_has_printout_report else print("Model has not printout report")<br>
<br>print ("Model contains " +  str(modelStatus.property_node_count) + " nodes")<br>
<br>print ("Model contains " +  str(modelStatus.property_line_count) + " lines")<br>
<br>print ("Model contains " +  str(modelStatus.property_member_count) + " members")<br>

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:

<br>ExportResulTablesWithDetailedMembersResultsToCsv()<br>
<br>ExportResulTablesWithDetailedMembersResultsToXML()<br>
<br>ParseCSVResultsFromSelectedFileToDict()<br>
<br>ParseXMLResultsFromSelectedFileToDict()<br>
Исходная глава