Execute a custom function during retrieve - Intergraph Smart Construction - 2019 (7.0) - Customization - Hexagon PPM

Intergraph Smart Construction Customization (2019)

Language
English
Product
Intergraph Smart Construction
Search by Category
Customization & Programming
Smart Construction Version
2019(7.0)

You can develop custom functions for use in retrieve mappings when you want to transform published data in some manner. For example, a custom function could be created to convert SI units to imperial units.

Create a custom function, as detailed in the ReadMe.txt file in the SPC_CustomRetrieveMapFunction folder. Browse to [Drive]:\Program Files (x86)\SmartConstruction\2019\Customization\Samples\SPC_CustomServerHandlers\SPC_CustomRetrieveMapFunction\SPC_CustomRetrieveMapFunction.

  1. Check out and open the SPCRetrieveMappings.xlsm workbook.

  2. Type the function call in the EFProperty column, using the syntax [Property definition]:FUNCTION([Function name], [Argument]).

    • If including arguments, separate each argument with a comma.

    • A property definition is optional. If you are not specifying a property definition, use the syntax FUNCTION([Function name], [Argument]).

  3. Save changes to the SPCRetrieveMappings.xlsm workbook.

  4. Select the Main tab of the worksheet.

  5. Click Generate Retrieve Mapping to generate a new XML file.

  6. Check in and sign off the file in the SmartPlant Foundation Desktop Client.

  7. Retrieve data in Smart Construction and execute the function.