get_part#

Model.get_part(id)#

Gets the part by id. Returns None if part doesn’t exist for the given id.

Parameters:
idint

Id of the part.

Returns:
Part

Returns the part.

Return type:

Part

Examples

>>> from ansys.meshing.prime import Model
>>> model = client.model
>>> part = model.get_part(2)