2025.3 Method
Changes 4
M

FabricationPart.ConnectAndCouple

Description:
Makes a connection between the specified connectors and adds coupling if necessary.
Remarks:
This function does not place and align the fabrication part. Call AlignPartByConnectors before connecting.
public static bool ConnectAndCouple(
	Document document,
	Connector connector,
	Connector toConnector
)
  • document
    The document.
  • connector
    The connector of the fabrication part.
  • toConnector
    The connector of the fabrication part or family to connect to.
Return Value Boolean True if connection succeeded, false otherwise.
  • The connector does not belong to a fabrication part. -or- The fabrication part connectors are not aligned, callAlignPartByConnectorsto align them.
  • A non-optional argument was null