Model.find_part_by_name

Model.find_part_by_name(name, casefold=False)[source]

Find if there is a part with a given name in the model.

Parameters:
namestr

The name to match

casefoldbool, optional

If True perform a case insensitive search, by default False.

Returns:
compas_fea2.model.Part

Notes

Names in fea2 must don’t contain spaces. If so, they are replaced by underscores.