Assembly.add_connection

Assembly.add_connection(a, b, **kwargs)[source]

Add a connection between two parts.

Parameters:
acompas.datastructures.Part

The “from” part.

bcompas.datastructures.Part

The “to” part.

**kwargsdict[str, Any], optional

Attribute dict compiled from named arguments.

Returns:
tuple[int | str, int | str]

The tuple of node identifiers that identifies the connection.

Raises:
AssemblyError

If a and/or b are not in the assembly.