Share

Connector.ConnectTo Method

Make connection between two connectors.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public void ConnectTo(
	Connector connector
)

Parameters

connector  Connector
Indicate the connector will be connected to.

Exceptions

ExceptionCondition
ArgumentNullException Thrown when argument is nullptr.
ArgumentException Argument is invalid.
InvalidOperationException Thrown when two connectors with different domain types. Thrown when these two connectors fail to connect each other. Thrown when connection already exists.

Remarks

Connection success may create a new Fitting between two connectors, if necessary.

See Also

Reference

Was this information helpful?