Structured objects - 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

There are times when an entire graph of objects and relationships is returned from one query. This is the case with GraphDefs, ViewDefs, and, as you will see later, Documents. If a graph were returned as a flat collection such as IObjectDictionary, the structure would be lost. For that reason, graphs are returned as an instance of class StructuredObjectCollection. This class is in the SPF.Client.Schema.Collection namespace. This is a collection of instances of class StructuredObject, which is in the SPF.Client.Schema.Model namespace.

For instance, a simple graph returning an object with two children will result in the following.

The parent object will have a StructuredObjectCollection available through the Children property. Within that collection will be the two child objects, each of which is a StructuredObject.