Classification handling - SmartPlant Foundation - IM Update 48 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

This describes the implementation for CDW classification relationships.

The type properties on the published item are used to determine what classification the object should have. The system finds all the EnumListType and EnumListLevelType properties on the CDW object and expands the SPFEnumEnumObjClass relationship.

If a classification is found as the result of the expansion, a relationship is created between the CDW object and the classification (SPFPrimaryClassification).

The logic is implemented on the ISPFClassifiedItem interface, so the CDW object class definition must realize that interface, as well as the ISPFCDWClassifiedItem interface.

Sometimes the type properties are set on the published data and sometimes they are not. This means the ISPFClassifiedItem interface is not required, because when the software cannot find a classification, it will throw an exception.

Therefore, a way to know when to add the ISPFClassifiedItem interface to the code is needed. A specific map function, SPFClassificationFromTyping, was written just to address this issue. Map functions are pieces of process logic that can be run when the CDW object is created. If this mapping exists, the object is related to the classification tree based on the Enum – Class Tree mappings.