Custom selection rule example - 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

The following example explains how to configure a selection rule for modules.

Prepare data for the module selection rule

In order to use a module selection rule in Smart Construction, the Module No property must be added to the Smart 3D tool map file. Models and drawings can then be published from Smart 3D to SmartPlant Foundation.

Map the Module No property to Smart Construction

The Module No property must be mapped to Smart Construction in order to correctly retrieve the component property. You must map the property to each type of class definition that the property uses in the selection rule.

For this example, CM_ModuleNo must be mapped to the ISPC_ComponentItem interface definition and SPC_ComponentItem_Model property definition.

retrieve mapping_modular example

Retrieve documents into Smart Construction

After you map the property to Smart Construction, retrieve the published documents (models and drawings) into Smart Construction.

Create a module selection rule for Smart Construction

  1. Log on to SmartPlant Foundation Desktop Client.

  2. Click Smart Construction > New > Administration > New Selection Rule to create a new selection rule.

  3. Type ModulesSelectionRule in the Name box.

  4. Type a description for the new selection rule in the Description box.

  5. Type Module in the Display As box.

  6. Type 40 in the Sequence box.

  7. Type Navigation_PropertySelectionRule in the Handler Type Name box.

  8. Type ISPC_ComponentItem in the Selection rule interfacedef UID box.

  9. Type SPC_ComponentItem_Module in the Selection rule propertydef UID box.

  10. Click Finish to save the new selection rule.

Manage security for the new selection rule

  1. Click Smart Construction > Find > Administration > Selection Rules to open the Find Selection Rules dialog box.

  2. Type your search criteria in the Find Selection Rules dialog box.

  3. Right-click the name of the selection rule and select Manage Access Groups.

  4. On the Manage Access Groups window, select an access group to add to the selection rule.

  5. Click Relate Selected Item to add the access group to the selection rule.

Use the new selection rule in Smart Construction

After configuring the Modules selection rule, you can use it to select groups of modules in Smart Construction.

module example