IList<IDataModelObject> IMechanicalDataModel.GetObjectsByType(Type param1)

Gets a list of all objects matching the specified type. This also includes objects that have a parent class matching the specified type. For example, providing the argument Ansys.ACT.Automation.Mechanical.Connections.ConnectionGroup will match objects of type along with all objects of derived classes such as , , and . Compare to which only returns objects exactly matching the specified type. The following command retrieves all the ThermalConditions in the DataModel, including derived objects like all_thermal_conditions = ExtAPI.DataModel.GetObjectsByType(Ansys.ACT.Automation.Mechanical.BoundaryConditions.ThermalCondition)

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.

Parameters

Return Value