Simcenter 3D Solutions How to modify an existing Python-script for Simcenter 3D Report Writer (NX-Open)

2024-08-27T06:37:59.000-0400
Simcenter 3D

Summary

Modifcation of the Material Table script for the usage in Report Writer (Function "Create Report" in Pre/Post). Too many informations are printed out in a table, which makes the report unconfortable to read. A modification of the Python-script can be easily done to adapt the Report Writer command.


Details

How to modify the Material Table script for the usage in Report Writer (Function "Create Report" in Pre/Post).

  • Modifying NX-Open Report-Commands (Python-Script) for a reduced and better readable layout of the Material table in "Create Report".
  • The Original Script can either be modified or a new one can be added in the Report Command Manager.

The report scripts can be found in the NX/Simcenter directory of the installation:

  • e.g. "..\NX2306\SIMULATION\report\commands\common\materials"

Here below we can see the original script RW_MaterialTable.py, which we will modify.

The reduced material output script looks like this:

The default output (without the changes) in a report looked like this.
The report command in a MS-Word Template is: <<<RW_MaterialTable>>>

All information from the material is listed, which are probably too much, and most information is not important.

The reduced form looks like this, which is in most cases sufficient.

 

KB Article ID# KB000134814_EN_US

Contents

SummaryDetails

Associated Components

NX Open Pre/Post