Max Value from D3PLOT

Writes max value from D3PLOT data to a variables file for REPORTER

Extracts the maximum value for a particular Data Component (across all States) from a D3PLOT model and writes to a (renamed) reporter_variables file.

This script has been written to circumvent a bug in REPORTER 17.0 (fixed in 17.1 onwards) in which variable values from a D3PLOT Item are not renewed when Generating. Attaching the script to the D3PLOT Item will allow you to later retrieve the variable values using the Library Program “Read a REPORTER variables file”. An example Template and D3PLOT model data have been included in the .zip file to show how this works.

The logic in place in the script deals with a limited number of Data Component + Element Type combinations. For more advanced use cases, the script will need to be further developed.