IList<IDataModelObject> IMechanicalDataModel.GetObjectsByType(Type param1)

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 of the Forces in the DataModel. all_forces = ExtAPI.DataModel.GetObjectsByType(Ansys.ACT.Automation.Mechanical.BoundaryConditions.Force).

Parameters

  • param1
    Type: Type

Return Value

Type: IList<IDataModelObject>