2027 Class
Changes 4
C

Connector

Description:
A connector in an Autodesk Revit MEP project document.
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Connector
public class Connector : IConnector, IDisposable
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);            
    }
}
Name Return Type Description Inherited From
M ConnectTo(Connector) None Make connection between two connectors.
M DisconnectFrom(Connector) None Remove connection between two connectors.
M Dispose() None Releases all resources used by the Connector
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetFabricationConnectorInfo() FabricationConnectorInfo Gets fabrication connectivity information.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetMEPConnectorInfo() MEPConnectorInfo Gets MEP connector information.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M IsConnectedTo(Connector) Boolean Identifies if the connector is connected to the specified connector.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P AllowsSlopeAdjustments bool Indicates if the connector allows the slope adjustment.
P AllRefs ConnectorSet All references of the connector.
P Angle double The angle of the Connector.
P AssignedDuctFlowConfiguration DuctFlowConfigurationType The assigned duct flow configuration of the connector.
P AssignedDuctLossMethod DuctLossMethodType The duct loss method of the connector.
P AssignedFixtureUnits double The assigned fixture units of the connector.
P AssignedFlow double The assigned flow of the connector.
P AssignedFlowDirection FlowDirectionType The assigned flow direction of the connector.
P AssignedFlowFactor double The assigned flow factor of this connector.
P AssignedKCoefficient double The assigned kCoefficient of the connector.
P AssignedLossCoefficient double The assigned loss coefficient of the connector.
P AssignedPipeFlowConfiguration PipeFlowConfigurationType The pipe flow configuration type of the connector.
P AssignedPipeLossMethod PipeLossMethodType The pipe loss method of the connector.
P AssignedPressureDrop double The assigned pressure drop of the connector.
P Coefficient double The coefficient of the connector.
P ConnectorManager ConnectorManager The connector manager of the connector.
P ConnectorType ConnectorType The connector type of the connector.
P CoordinateSystem Transform The coordinate system of the connector.
P Demand double The demand of the connector.
P Description string The description.
P Direction FlowDirectionType The direction of the connector.
P Domain Domain The domain of the connector.
P DuctSystemType DuctSystemType The duct system type of the connector.
P ElectricalSystemType ElectricalSystemType The electrical system type of the connector.
P EngagementLength double 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.
P Flow double The flow of the connector.
P GasketLength double 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.
P Height double The height of the connector.
P Id int A unique identifier to identify this connector.
P IsConnected bool Identifies if the connector is physically connected to a connector on another element.
P IsMovable bool whether the connector can be moved.
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P MEPSystem MEPSystem The system of the connector belong to.
P Origin XYZ The location of the connector.
P Owner Element The host of the connector.
P PipeSystemType PipeSystemType The pipe system type of the connector.
P PressureDrop double The pressure drop of the connector.
P Radius double The radius of the connector.
P Shape ConnectorProfileType The shape of the connector.
P Utility bool Indicates if the connector is a utility connector.
P VelocityPressure double The velocity pressure of the connector.
P Width double The width of the connector.