GET_MAXTEMP - Intergraph Smart Materials - Version 2020 (10.0) - Customization & Programming - Hexagon PPM

Intergraph Smart Materials Customization (2020)

Language
English
Product
Intergraph Smart Materials
Subproduct
Classic
Search by Category
Customization & Programming
Smart Materials/Smart Reference Data Version
2020 (10.0)

Description:

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

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

2 => If the entered maximum temperature is 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 .getcommoditycode, which is used to get the commodity code.

Type:

Function

Usage:

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

Event:

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

Default:

0