Single object - 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

We have encapsulated the expand relation functionality into the IObject and IObjectDictionary classes, the methods will look at the relationship and decided whether it's a RelDef or EdgeDef and call the appropriate QueryRequest method accordingly.

When you have an object to expand an Edge, you use GetEnd1Relationships; to expand a RelDef when the interface you have is UID1, you use GetEnd1Relationships also. If the edge you have is UID2 as defined on the RelDef, then you use GetEnd2Relationships.

Dim lobjItems As IRelDictionary = lobjColumnSet.GetEnd1Relationships.GetRels("SPFColumnSetColumnItem")

All code generated interfaces will contain Methods that will perform any RelDef or EdgeDef expansions. This saves you having to write any code. Just call the method:

Dim lobjItems As IRelDictionary = lobjColumnSet.GetColumnItems