To get the child objects of spaces use the GetSpaceChildren
method.
To get the child objects of equipment use the GetObjects
method. This method takes the GUID of the parent object, and the number of levels to retrieve. The default number of levels is one, or just the immediate children of the object.
For more information on the GetObjects
method, see Get an object ID.
Library method name |
GetSpaceChildren
|
---|---|
Description | Get children spaces of a given space. |
Method signature |
IEnumerable<MetasysObject> GetSpaceChildren(Guid spaceId);
|
Method input parameters |
spaceId : GUID of the space object that the method targets and returns the child space objects. |
Return value | A collection of MetasysObject that represent equipment in a space. |