Connector
A connector in an Autodesk Revit MEP project document.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.Connector
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class Connector : IConnector, IDisposable
The Connector type exposes the following members.
Properties
Name
Description
Public Property
AllowsSlopeAdjustments
Indicates if the connector allows the slope adjustment.
Public Property
AllRefs
All references of the connector.
Public Property
Angle
The angle of the Connector.
Public Property
AssignedDuctFlowConfiguration
The assigned duct flow configuration of the connector.
Public Property
AssignedDuctLossMethod
The duct loss method of the connector.
Public Property
AssignedFixtureUnits
The assigned fixture units of the connector.
Public Property
AssignedFlow
The assigned flow of the connector.
Public Property
AssignedFlowDirection
The assigned flow direction of the connector.
Public Property
AssignedFlowFactor
The assigned flow factor of this connector.
Public Property
AssignedKCoefficient
The assigned kCoefficient of the connector.
Public Property
AssignedLossCoefficient
The assigned loss coefficient of the connector.
Public Property
AssignedPipeFlowConfiguration
The pipe flow configuration type of the connector.
Public Property
AssignedPipeLossMethod
The pipe loss method of the connector.
Public Property
AssignedPressureDrop
The assigned pressure drop of the connector.
Public Property
Coefficient
The coefficient of the connector.
Public Property
ConnectorManager
The connector manager of the connector.
Public Property
ConnectorType
The connector type of the connector.
Public Property
CoordinateSystem
The coordinate system of the connector.
Public Property
Demand
The demand of the connector.
Public Property
Description
The description.
Public Property
Direction
The direction of the connector.
Public Property
Domain
The domain of the connector.
Public Property
DuctSystemType
The duct system type of the connector.
Public Property
ElectricalSystemType
The electrical system type of the connector.
Public Property
EngagementLength
Connector engagement length. When applicable, it represents the inset distance to the end of the fabrication part from the connection point. Otherwise it returns zero.
Public Property
Flow
The flow of the connector.
Public Property
GasketLength
Connector gasket length. When applicable, it represents the distance from the end of the fabrication part to the center of the gasket. Otherwise it returns zero.
Public Property
Height
The height of the connector.
Public Property
Id
A unique identifier to identify this connector.
Public Property
IsConnected
Identifies if the connector is physically connected to a connector on another element.
Public Property
IsMovable
whether the connector can be moved.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MEPSystem
The system of the connector belong to.
Public Property
Origin
The location of the connector.
Public Property
Owner
The host of the connector.
Public Property
PipeSystemType
The pipe system type of the connector.
Public Property
PressureDrop
The pressure drop of the connector.
Public Property
Radius
The radius of the connector.
Public Property
Shape
The shape of the connector.
Public Property
Utility
Indicates if the connector is a utility connector.
Public Property
VelocityPressure
The velocity pressure of the connector.
Public Property
Width
The width of the connector.
Methods
Name
Description
Public Method
ConnectTo
Make connection between two connectors.
Public Method
DisconnectFrom
Remove connection between two connectors.
Public Method
Dispose
Releases all resources used by the Connector
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetFabricationConnectorInfo
Gets fabrication connectivity information.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetMEPConnectorInfo
Gets MEP connector information.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
IsConnectedTo
Identifies if the connector is connected to the specified connector.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
This connector is an item that is a part of another element (duct, pipe, fitting, or equipment etc.). This connector does not represent the connector element that can be created inside a family; for that element, refer to ConnectorElement.
Example
public void GetElementAtConnector(Autodesk.Revit.DB.Connector connector){ MEPSystem mepSystem = connector.MEPSystem; if (null != mepSystem) { string message = "Connector is owned by: " + connector.Owner.Name;
if (connector.IsConnected == true) { ConnectorSet connectorSet = connector.AllRefs; ConnectorSetIterator csi = connectorSet.ForwardIterator(); while (csi.MoveNext()) { Connector connected = csi.Current as Connector; if (null != connected) { // look for physical connections if (connected.ConnectorType == ConnectorType.End || connected.ConnectorType == ConnectorType.Curve || connected.ConnectorType == ConnectorType.Physical) { message += "\nConnector is connected to: " + connected.Owner.Name; message += "\nConnection type is: " + connected.ConnectorType; } } } } else { message += "\nConnector is not connected to anything."; }
Autodesk.Revit.UI.TaskDialog.Show("Revit", message); }}