get_part_by_name#

Model.get_part_by_name(name)#

Get the part by name.

Parameters:
namestr

Name of the part.

Returns:
Part

Part or None if the given part name doesn’t exist.

Return type:

Part

Examples

>>> from ansys.meshing.prime import Model
>>> model = client.model
>>> part = model.get_part_by_name("part.1")