Execute a custom function during retrieve - Intergraph Smart Construction - Hotfix 11 - Customization & Programming - Hexagon

Intergraph Smart Construction Customization

Language
English
Product
Intergraph Smart Construction
Search by Category
Customization & Programming
Smart Construction Version
8

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.

  1. Create a custom function, as detailed in the ReadMe.txt file in the SPC_CustomRetrieveMapFunction folder.

  2. Browse to [Drive]:\Program Files\SmartConstruction\Customization\Samples\SPC_CustomServerHandlers\SPC_CustomRetrieveMapFunction\SPC_CustomRetrieveMapFunction.

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

  4. 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]).

  5. Save changes to the SPCRetrieveMappings.xlsm workbook.

  6. Select the Main tab of the worksheet.

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

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

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