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.
- **kwargsdict[str, Any], optional
Attribute dict compiled from named arguments.
- a
- 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.