Adding graph node criteria - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

You can specify criteria for the graph expansion for any of the graph nodes. For example:

' Set criteria on graph nodes

lobjGraphExpansionQuery.AddGraphDefCriteria("+IClassDef", ObjectCriteria.Name.StartsWith("SPFCDWC") Or ObjectCriteria.Name.StartsWith("SPFTEF"))

lobjGraphExpansionQuery.AddGraphDefCriteria("ExposedPropertyDefs", ObjectCriteria.UID.Contains("CDW"))

For more information on how to build object criteria, see the Using the Dynamic Query in the Data Access Layer (DAL).