IList<IDataModelObject> IMechanicalDataModel.GetObjectsByExactType(Type param1)

Gets a list of all objects exactly matching the specified type. This explicitly excludes objects that have a parent class matching the specified type. For example, providing the argument Ansys.ACT.Automation.Mechanical.Connections.ConnectionGroup will only match objects of type . All other derived class objects will be excluded, such as , , and . Compare to which returns all objects of the specified type along with their derivative types. The following command retrieves only the objects in the DataModel. only_thermal_conditions = ExtAPI.DataModel.GetObjectByExactType(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