Assembly.add_connection
- Assembly.add_connection(a, b, **kwargs)[source]
Add a connection between two parts.
- Parameters
a (
compas.datastructures.Part
) – The “from” part.b (
compas.datastructures.Part
) – The “to” part.kwargs (dict) – Additional named parameters collected in a dict.
- Returns
tuple of str or int – The tuple of node identifiers that identifies the connection.
- Raises
AssemblyError – If
a
and/orb
are not in the assembly.