GET_MINMAXTEMP - Intergraph Smart Materials - Version 10.2 - Customization & Programming - Hexagon

Intergraph Smart Materials Customization (10.2)

Language
English
Product
Intergraph Smart Materials
Subproduct
Classic
Search by Category
Customization & Programming
Smart Materials/Smart Reference Data Version
10.2

Description:

This function takes specification name with its revision, first size, first size unit, second size, second size unit, short code, first size and second size unit IDs, minimum temperature, maximum temperature, and option code as input. This function converts the entered minimum and maximum temperatures to the same unit as that of the temperature units specified for the specification, and then compares these temperatures against the temperatures of the spec and returns one of the following error codes:

1 => If any database error occurs while fetching min, max temperatures.

2 => If the entered minimum and maximum temperatures are not within the temperature limits of the spec.

5 => If the unit specified in Smart Reference Data for the spec is not a valid one.

This function is called from m_pck_pid_spec_utl .getcommodityoptions, which is used to retrieve the option codes.

Type:

Function

Usage:

This function is used to validate the input maximum and minimum temperatures from the P&ID interface against the Smart Reference Data maximum and minimum temperatures specified for a spec.

Event:

This function is called when the get commodity options button of the P&ID interface is clicked. On click of this button, the software calls the getcommodityoptions function, which in turn calls the Get_MinMaxTemp function.

Default:

0