Assembly.find_by_key

Assembly.find_by_key(key)[source]

Find a part in the assembly by its key.

Parameters

key (int | str, optional) – The identifier of the part in the assembly.

Returns

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