IList<DataModelObject> Tree.GetObjectsByType(Type type)

Gets a list of all objects with the specified type.

Remarks

The type must be specified either by using the full namespace of the object (e.g: Ansys.ACT.Automation.Mechanical.Comment), or by using the returned value of the method GetType() on the object.

Examples

The following command retrieves all comments on the tree. all_comments = ExtAPI.DataModel.Tree.GetObjectsByType(Ansys.ACT.Automation.Mechanical.Comment).

Parameters

  • type
    Type: Type
    The object's type.

Return Value