The GetObjectsFromNamedRelation activity returns a list of child objects and its relation data via the name of an existing Relation of a given parent object.
Get Objects From Named Relation | |
---|---|
Name | GetObjectsFromNamedRelation |
Purpose | Return child objects of parent object |
Category | Relations |
Returns | List of child objects |
Version | 2.2.3 |
Contents
Arguments
Argument | Type | Direction | Purpose |
---|---|---|---|
Parent | RelationalObject | In | The parent object |
RelationName | String | In | The name of the relation to be searched for at the parent object |
RelationData | UBIKClassList<RelationData> | Out | The list of relation data objects |
Result | UBIKClassList<Relationalobject> | Out | The list of child objects |
Usage
This activity is used to find a certain relation at the parent object via the name and then relate the child object to it.
Example
Load the MetaClass named PUMP, also load the MetaProperty NOMINALPOWER from the property pool and then add it to the MetaClasses' properties:
Argument | Value |
---|---|
Parent | UBIKObject.Environment _ .GetSystemMetaClass(SystemObjects.METACLASS) _ .AllInstances("PUMP") |
RelationName | "SYSREL_METAPROPERTY" |
Child | UBIKObject.Environment _ .GetSystemMetaClass(SystemObjects.POOL_METAPROPERTY) _ .GetMetaProperty("NOMINALPOWER") |