Table of Contents

Class Connector

Namespace
OpenMEPRevit.ConnectorManager
Assembly
OpenMEPRevit.dll

A connector in an Autodesk Revit MEP project document.

public class Connector
Inheritance
Connector
Inherited Members

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 Autodesk.Revit.DB.ConnectorElement.

Methods

AllRefs(Connector)

All references of the connector.

public static List<Connector> AllRefs(Connector connector)

Parameters

connector Connector

connector

Returns

List<Connector>

A set of connectors that the connectors is connected to, including both physical connection and logical connection.

Examples

Angle(Connector)

return angle of connector

public static double Angle(Connector connector)

Parameters

connector Connector

connector

Returns

double

radian

Examples

Connector.Angle.dyn

AssignedFixtureUnits(Connector)

The assigned fixture units of the connector.

public static double AssignedFixtureUnits(Connector connector)

Parameters

connector Connector

Connector

Returns

double

AssignedFixtureUnits

Examples

AssignedFlow(Connector)

The assigned flow of the connector.

public static double AssignedFlow(Connector connector)

Parameters

connector Connector

Connector

Returns

double

AssignedFlow

Examples

Connector.AssignedFlow.dyn

AssignedFlowFactor(Connector)

The assigned flow factor of connector.

public static double AssignedFlowFactor(Connector connector)

Parameters

connector Connector

Connector

Returns

double

AssignedFlowFactor

Examples

AssignedKCoefficient(Connector)

The assigned kCoefficient of the connector.

public static double AssignedKCoefficient(Connector connector)

Parameters

connector Connector

Connector

Returns

double

AssignedKCoefficient

Examples

AssignedLossCoefficient(Connector)

The assigned loss coefficient of the connector.

public static double AssignedLossCoefficient(Connector connector)

Parameters

connector Connector

Connector

Returns

double

AssignedLossCoefficient

Examples

AssignedPressureDrop(Connector)

The assigned pressure drop of the connector.

public static double AssignedPressureDrop(Connector connector)

Parameters

connector Connector

Connector

Returns

double

AssignedPressureDrop

Examples

Coefficient(Connector)

The coefficient of the connector.

public static double Coefficient(Connector connector)

Parameters

connector Connector

Connector

Returns

double

Coefficient

Examples

Connector.Coefficient.dyn

ConnectTo(Connector, Connector)

Remove connection between two connectors.

public static Connector ConnectTo(Connector connector, Connector connectorFrom)

Parameters

connector Connector

connect need connect

connectorFrom Connector

Indicate the connector, connection will be removed from.

Returns

Connector

connect need connect

Examples

ConnectorManager(Connector)

The connector manager of the connector.

public static ConnectorManager ConnectorManager(Connector connector)

Parameters

connector Connector

Connector

Returns

ConnectorManager

ConnectorManager

Examples

CoordinateSystem(Connector)

Return CoordinateSystem of the connector.

[MultiReturn(new string[] { "Origin", "BasisX", "BasisY", "BasisZ", "Determinant", "Scale", "HasReflection", "IsConformal", "IsTranslation", "IsIdentity" })]
public static Dictionary<string, object?> CoordinateSystem(Connector connector)

Parameters

connector Connector

Returns

Dictionary<string, object>

Examples

Demand(Connector)

The demand of the connector.

public static double Demand(Connector connector)

Parameters

connector Connector

Connector

Returns

double

Demand

Examples

Connector.Demand.dyn

Description(Connector)

The description of the connector.

public static string Description(Connector connector)

Parameters

connector Connector

Connector

Returns

string

Description

Examples

Direction(Connector?)

Get direction of connector

public static Point? Direction(Connector? connector)

Parameters

connector Connector

Returns

Point

Examples

Connector.Direction.dyn

DisConnectFrom(Connector, Connector)

Remove connection between two connectors.

public static Connector DisConnectFrom(Connector connector, Connector connectorFrom)

Parameters

connector Connector

connect need disconnect

connectorFrom Connector

Indicate the connector, connection will be removed from.

Returns

Connector

connector need disconnect

Examples

Display(Connector?, double)

Shows scalable lines representing the CoordinateSystem of a Connector.

[MultiReturn(new string[] { "Display", "Origin", "XAxis", "YAxis", "ZAxis", "XYPlane", "YZPlane", "ZXPlane" })]
public static Dictionary<string, object?> Display(Connector? connector, double length = 1000)

Parameters

connector Connector

Autodesk.Revit.DB.Connector

length double

double

Returns

Dictionary<string, object>

GeometryColor order by x,y,z

Examples

DistanceTo(Connector?, Point?)

return distance between one connector with another point

public static double? DistanceTo(Connector? connector, Point? point)

Parameters

connector Connector

the connector

point Point

point to get distance from this to the connector

Returns

double?

distance from connector to point

DistanceTo(Connector?, Connector?)

return distance between one connector with another connector

public static double? DistanceTo(Connector? connector1, Connector? connector2)

Parameters

connector1 Connector
connector2 Connector

Returns

double?

Examples

Connector.DistanceTo.dyn

Domain(Connector)

The domain of the connector.

public static dynamic Domain(Connector connector)

Parameters

connector Connector

Connector

Returns

dynamic

Domain

Examples

EngagementLength(Connector)

Connector engagement length

public static double EngagementLength(Connector connector)

Parameters

connector Connector

Connector

Returns

double

Connector engagement length

Examples

Connector.EngagementLength.dyn

Flow(Connector)

The Flow of the connector.

public static double Flow(Connector connector)

Parameters

connector Connector

Connector

Returns

double

Flow of connector

Examples

Connector.Flow.dyn

GetArea(Connector)

Get area of connector

public static double GetArea(Connector connector)

Parameters

connector Connector

connector

Returns

double

area of connector

Examples

GetConnectorClosest(Point, List<Connector>)

Return Connector Closet With Connector Current

public static Connector? GetConnectorClosest(Point point, List<Connector> connectors)

Parameters

point Point

origin

connectors List<Connector>

list connector to check

Returns

Connector

connector

Examples

Connector.GetConnectorClosest.dyn

GetConnectorClosest(Connector?, List<Connector>)

Return Connector Closet With Connector Current

public static Connector? GetConnectorClosest(Connector? c, List<Connector> connectors)

Parameters

c Connector

first connector

connectors List<Connector>

an collection connectors to check

Returns

Connector

closet connector

Examples

Connector.GetConnectorClosest.dyn

GetConnectorClosest(Element, Point)

Get closest Connector inside the Element with a Point

public static Connector? GetConnectorClosest(Element element, Point point)

Parameters

element Element

element contains connectors

point Point

point need to check

Returns

Connector

closest connector with point

GetConnectorClosest(Element?, Element?)

Return Closet Connector between element1 from element2

public static Connector? GetConnectorClosest(Element? element1, Element? element2)

Parameters

element1 Element

first element

element2 Element

second element

Returns

Connector

closet connector of element1

Examples

Connector.GetConnectorClosest.dyn

GetConnectorConnectedWith(Connector)

return element connected with connector

public static Connector? GetConnectorConnectedWith(Connector connector)

Parameters

connector Connector

connector

Returns

Connector

element has connected with connector

Examples

GetConnectorFarthest(Point?, List<Connector?>)

return connector farthest with point current

public static Connector? GetConnectorFarthest(Point? point, List<Connector?> connectors)

Parameters

point Point

the point to check

connectors List<Connector>

an collection of connectors

Returns

Connector

the connector farthest with this point

GetConnectorFarthest(Connector?, List<Connector?>)

return connector farthest with connector current

public static Connector? GetConnectorFarthest(Connector? connector, List<Connector?> connectors)

Parameters

connector Connector

the connector

connectors List<Connector>

an collection connector to check

Returns

Connector

connector

GetConnectorFarthest(Element?, Element?)

Return Farthest Connector between element1 with element2

public static Connector? GetConnectorFarthest(Element? element1, Element? element2)

Parameters

element1 Element

first element

element2 Element

second element

Returns

Connector

Farthest connector of element1

Examples

Connector.GetConnectorFarthest.dyn

GetConnectorSet(Element?)

return connector set of element

public static ConnectorSet? GetConnectorSet(Element? element)

Parameters

element Element

Returns

ConnectorSet

Examples

Connector.GetConnectorSet.dyn

GetConnectors(ConnectorManager)

return list connector from connector manager

public static List<Connector> GetConnectors(ConnectorManager connectorManager)

Parameters

connectorManager ConnectorManager

connector manager

Returns

List<Connector>

connectors

GetConnectors(Element?)

return list connector from element

public static List<Connector> GetConnectors(Element? element)

Parameters

element Element

element

Returns

List<Connector>

connectors

Examples

Connector.GetConnectors.dyn

GetDirection(Connector?)

Get direction BasisZ of connector

public static Point? GetDirection(Connector? connector)

Parameters

connector Connector

Returns

Point

GetElementConnectedContinuous(Connector)

Return All Element Connected Continuous In Branch Be careful, because this node require recursive to check all connected.

public static List<Element> GetElementConnectedContinuous(Connector connector)

Parameters

connector Connector

element

Returns

List<Element>

list element connected Continuous from element

Examples

GetElementConnectedContinuous(Element?)

Return All Element Connected Continuous In Branch Be careful, because this node require recursive to check all connected.

public static List<Element> GetElementConnectedContinuous(Element? element)

Parameters

element Element

element

Returns

List<Element>

list element connected Continuous from element

Examples

GetElementConnectedWith(Connector?)

return element connected with connector

public static Element? GetElementConnectedWith(Connector? connector)

Parameters

connector Connector

connector

Returns

Element

element has connected with connector

Examples

GetMEPConnectorInfo(Connector)

Gets MEP connector information.

public static MEPConnectorInfo GetMEPConnectorInfo(Connector connector)

Parameters

connector Connector

Connector

Returns

MEPConnectorInfo

Returns null if there is no MEP connector information associated

Examples

GetRemainingConnector(Element?, Connector)

return all connectors of element except connector same id with connector input

public static List<Connector> GetRemainingConnector(Element? element, Connector connector)

Parameters

element Element

the element

connector Connector

connector

Returns

List<Connector>

list of connectors

Examples

Connector.GetRemainingConnector.dyn

GetRemainingConnector(List<Connector>, Connector)

return all connectors of list connectors except connector same id with connector input

public static List<Connector> GetRemainingConnector(List<Connector> connectors, Connector connector)

Parameters

connectors List<Connector>

list connectors need to check

connector Connector

connector need to remove

Returns

List<Connector>

list of connectors

Examples

Connector.GetRemainingConnector2.dyn

GetUnusedConnectors(ConnectorManager?)

return list connector from element

public static List<Connector?> GetUnusedConnectors(ConnectorManager? connectorManager)

Parameters

connectorManager ConnectorManager

connector manager

Returns

List<Connector>

connectors

GetUnusedConnectors(Element?)

return list connector unused from element

public static List<Connector?> GetUnusedConnectors(Element? element)

Parameters

element Element

element

Returns

List<Connector>

unused connectors

Examples

Connector.GetUnusedConnectors.dyn

GetUsedConnectors(Element?)

return list connector used from element

public static List<Connector> GetUsedConnectors(Element? element)

Parameters

element Element

element

Returns

List<Connector>

used connectors

Examples

Connector.GetUsedConnectors.dyn

Height(Connector)

The height of the connector.

public static double Height(Connector connector)

Parameters

connector Connector

Connector

Returns

double

Height

Examples

Id(Connector)

return id of connector

public static double Id(Connector connector)

Parameters

connector Connector

connector

Returns

double

Id of connector

Examples

Connector.Id.dyn

IsConnected(Connector?)

check connector is connected or not

[NodeCategory("Query")]
public static bool? IsConnected(Connector? connector)

Parameters

connector Connector

the connector

Returns

bool?

true if connector is connected

Examples

Connector.IsConnected.dyn

IsConnectedTo(Connector, Connector)

Identifies if the connector is connected to the specified connector.

[NodeCategory("Query")]
public static bool IsConnectedTo(Connector connector, Connector connectorOther)

Parameters

connector Connector

the connector to check

connectorOther Connector

the second connector to identifies

Returns

bool

true if connector is connected to other

Examples

Origin(Connector?)

Get origin of connector

public static Point? Origin(Connector? connector)

Parameters

connector Connector

the connector

Returns

Point

location origin of connector

Examples

Connector.Origin.dyn

Owner(Connector)

The host of the connector. The element that contains connector. It may also contain other connectors.

public static Element Owner(Connector connector)

Parameters

connector Connector

connector

Returns

Element

element

Examples

Connector.Owner.dyn

PressureDrop(Connector)

The pressure drop of the connector.

public static double PressureDrop(Connector connector)

Parameters

connector Connector

Connector

Returns

double

PressureDrop

Examples

Connector.PressureDrop.dyn

Radius(Connector)

return the radius of connector

public static double Radius(Connector connector)

Parameters

connector Connector

connector

Returns

double

radius

Examples

Connector.Radius.dyn

SetAngle(Connector, double)

set new angle for connector

public static void SetAngle(Connector connector, double angle)

Parameters

connector Connector

connector

angle double

angle

Examples

SetOrigin(Connector, Point)

set new origin for connector

public static void SetOrigin(Connector connector, Point origin)

Parameters

connector Connector

connector

origin Point

new point

Examples

Shape(Connector)

The shape of the connector.

public static dynamic Shape(Connector connector)

Parameters

connector Connector

Connector

Returns

dynamic

ConnectorProfileType

Examples

SystemType(Connector)

return system type of connector

public static dynamic? SystemType(Connector connector)

Parameters

connector Connector

connector

Returns

dynamic

domain

Examples

Connector.SystemType.dyn

VelocityPressure(Connector)

The velocity pressure of the connector.

public static double VelocityPressure(Connector connector)

Parameters

connector Connector

Connector

Returns

double

VelocityPressure

Examples

Width(Connector)

The Width of the connector.

public static double Width(Connector connector)

Parameters

connector Connector

Connector

Returns

double

the width of connector

Examples

Connector.Width.dyn