Assembly.find_by_key

Assembly.find_by_key(key)[source]

Find a part in the assembly by its key.

Parameters:
keyint | str, optional

The identifier of the part in the assembly.

Returns:
compas.datastructures.Part | None

The identified part, or None if the part can’t be found.