Custom filter category example - Intergraph Smart Construction - 2018 (6.0) - Customization - Hexagon PPM

Intergraph Smart Construction Customization (2018)

Intergraph Smart Construction
Customization & Programming
2018 (6.0)

The following example explains how to configure a filter category for modules.

Prepare data to filter by modules

In order to filter by modules 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 filter.

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

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 filter category for Smart Construction models

  1. Log on to SmartPlant Foundation Desktop Client.

  2. Click Smart Construction > New > Administration > 3D Filter Category to create a filter category for a 3D model.

  3. Type ModulesFilter in the Name box.

  4. Type a description for the new filter category in the Description box.

  5. Type Modules in the Display As box.

  6. Type SPC.Server.FilterHandlers in the Handler Assembly box.

  7. Type SPC.Server.FilterHandlers.DrawingFilter_PropertyFilterHandler for the Handler class box.

  8. Select the Enabled option to enable the filter in the Smart Construction application.

  9. Select the CanModifyFilters option to allow filters to be deleted from the category.

  10. Type ISPC_ComponentItem in the Filter interfacedef uid box.

  11. Type SPC_ComponentItem_Module in the Filter Property DefUID box.

  12. Click Finish to save the new filter category.

Filter a Smart Construction model with the Modules filter category

After configuring the Modules filter category, you can filter Smart Construction models with the Modules filter category.