Assembly.add_connection

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

Add a connection between two parts.

Parameters
  • a (Part) – The “from” part.

  • b (Part) – The “to” part.

  • **kwargs (dict[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.