Make connection between two connectors.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- connector
- Type: Autodesk.Revit.DBConnector
Indicate the connector will be connected to.
Remarks
Connection success may create a new Fitting between two connectors, if necessary.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentNullException | Thrown when argument is a null reference (Nothing in Visual Basic). |
| Autodesk.Revit.ExceptionsArgumentException | Argument is invalid. |
| Autodesk.Revit.ExceptionsInvalidOperationException | Thrown when two connectors with different domain types. Thrown when these two connectors fail to connect each other. Thrown when connection already exists. |