IUANode.GetNodesByType<T>()

Returns an IEnumerable C# list that corresponds to the list of child nodes of the node on which the method is invoked and of the specified type.

Tip:

In Visual Studio and Visual Studio Code, specifying the exact type (<T>) improves the intelligent code completion and makes it easier to identify errors while writing the code.

At runtime, it is evident if the node searched is of the requested type. If the searched node is not of the requested type, the API returns null.

IEnumerable<T> GetNodesByType<T>();

Arguments

T
An IUANode C# class that corresponds to the class of the C# object to return.

Returns

IEnumerable
A C# list that contains the nodes of the requested type.

Example

var model = Project.Current.Get("Model");
var motors = model.GetNodesByType<Motor>();