FabricationPartConnectAndCouple Method |
Makes a connection between the specified connectors and adds coupling if necessary.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static bool ConnectAndCouple(
Document document,
Connector connector,
Connector toConnector
)
Public Shared Function ConnectAndCouple (
document As Document,
connector As Connector,
toConnector As Connector
) As Boolean
public:
static bool ConnectAndCouple(
Document^ document,
Connector^ connector,
Connector^ toConnector
)
static member ConnectAndCouple :
document : Document *
connector : Connector *
toConnector : Connector -> bool
Parameters
- document Document
-
The document.
- connector Connector
-
The connector of the fabrication part.
- toConnector Connector
-
The connector of the fabrication part or family to connect to.
Return Value
Boolean
True if connection succeeded, false otherwise.
Exceptions
Remarks
This function does not place and align the fabrication part. Call
AlignPartByConnectors before connecting.
See Also