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