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
Connectorconnector
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
Connectorconnector
Returns
- double
radian
Examples
AssignedFixtureUnits(Connector)
The assigned fixture units of the connector.
public static double AssignedFixtureUnits(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
AssignedFixtureUnits
Examples
AssignedFlow(Connector)
The assigned flow of the connector.
public static double AssignedFlow(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
AssignedFlow
Examples
AssignedFlowFactor(Connector)
The assigned flow factor of connector.
public static double AssignedFlowFactor(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
AssignedFlowFactor
Examples
AssignedKCoefficient(Connector)
The assigned kCoefficient of the connector.
public static double AssignedKCoefficient(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
AssignedKCoefficient
Examples
AssignedLossCoefficient(Connector)
The assigned loss coefficient of the connector.
public static double AssignedLossCoefficient(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
AssignedLossCoefficient
Examples
AssignedPressureDrop(Connector)
The assigned pressure drop of the connector.
public static double AssignedPressureDrop(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
AssignedPressureDrop
Examples
Coefficient(Connector)
The coefficient of the connector.
public static double Coefficient(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
Coefficient
Examples
ConnectTo(Connector, Connector)
Remove connection between two connectors.
public static Connector ConnectTo(Connector connector, Connector connectorFrom)
Parameters
connector
Connectorconnect need connect
connectorFrom
ConnectorIndicate 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
ConnectorConnector
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
Examples
Demand(Connector)
The demand of the connector.
public static double Demand(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
Demand
Examples
Description(Connector)
The description of the connector.
public static string Description(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- string
Description
Examples
Direction(Connector?)
Get direction of connector
public static Point? Direction(Connector? connector)
Parameters
connector
Connector
Returns
- Point
Examples
DisConnectFrom(Connector, Connector)
Remove connection between two connectors.
public static Connector DisConnectFrom(Connector connector, Connector connectorFrom)
Parameters
connector
Connectorconnect need disconnect
connectorFrom
ConnectorIndicate 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
ConnectorAutodesk.Revit.DB.Connector
length
doubledouble
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
Connectorthe connector
point
Pointpoint 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
Connectorconnector2
Connector
Returns
Examples
Domain(Connector)
The domain of the connector.
public static dynamic Domain(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- dynamic
Domain
Examples
EngagementLength(Connector)
Connector engagement length
public static double EngagementLength(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
Connector engagement length
Examples
Connector.EngagementLength.dyn
Flow(Connector)
The Flow of the connector.
public static double Flow(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
Flow of connector
Examples
GetArea(Connector)
Get area of connector
public static double GetArea(Connector connector)
Parameters
connector
Connectorconnector
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
Pointorigin
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
Connectorfirst 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
Elementelement contains connectors
point
Pointpoint 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
Elementfirst element
element2
Elementsecond 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
Connectorconnector
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
Pointthe 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
Connectorthe 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
Elementfirst element
element2
Elementsecond 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
GetConnectors(ConnectorManager)
return list connector from connector manager
public static List<Connector> GetConnectors(ConnectorManager connectorManager)
Parameters
connectorManager
ConnectorManagerconnector manager
Returns
- List<Connector>
connectors
GetConnectors(Element?)
return list connector from element
public static List<Connector> GetConnectors(Element? element)
Parameters
element
Elementelement
Returns
- List<Connector>
connectors
Examples
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
Connectorelement
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
Elementelement
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
Connectorconnector
Returns
- Element
element has connected with connector
Examples
GetMEPConnectorInfo(Connector)
Gets MEP connector information.
public static MEPConnectorInfo GetMEPConnectorInfo(Connector connector)
Parameters
connector
ConnectorConnector
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
Elementthe element
connector
Connectorconnector
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
Connectorconnector 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
ConnectorManagerconnector manager
Returns
- List<Connector>
connectors
GetUnusedConnectors(Element?)
return list connector unused from element
public static List<Connector?> GetUnusedConnectors(Element? element)
Parameters
element
Elementelement
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
Elementelement
Returns
- List<Connector>
used connectors
Examples
Connector.GetUsedConnectors.dyn
Height(Connector)
The height of the connector.
public static double Height(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
Height
Examples
Id(Connector)
return id of connector
public static double Id(Connector connector)
Parameters
connector
Connectorconnector
Returns
- double
Id of connector
Examples
IsConnected(Connector?)
check connector is connected or not
[NodeCategory("Query")]
public static bool? IsConnected(Connector? connector)
Parameters
connector
Connectorthe connector
Returns
- bool?
true if connector is connected
Examples
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
Connectorthe connector to check
connectorOther
Connectorthe 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
Connectorthe connector
Returns
- Point
location origin of connector
Examples
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
Connectorconnector
Returns
- Element
element
Examples
PressureDrop(Connector)
The pressure drop of the connector.
public static double PressureDrop(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
PressureDrop
Examples
Radius(Connector)
return the radius of connector
public static double Radius(Connector connector)
Parameters
connector
Connectorconnector
Returns
- double
radius
Examples
SetAngle(Connector, double)
set new angle for connector
public static void SetAngle(Connector connector, double angle)
Parameters
connector
Connectorconnector
angle
doubleangle
Examples
SetOrigin(Connector, Point)
set new origin for connector
public static void SetOrigin(Connector connector, Point origin)
Parameters
connector
Connectorconnector
origin
Pointnew point
Examples
Shape(Connector)
The shape of the connector.
public static dynamic Shape(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- dynamic
ConnectorProfileType
Examples
SystemType(Connector)
return system type of connector
public static dynamic? SystemType(Connector connector)
Parameters
connector
Connectorconnector
Returns
- dynamic
domain
Examples
VelocityPressure(Connector)
The velocity pressure of the connector.
public static double VelocityPressure(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
VelocityPressure
Examples
Width(Connector)
The Width of the connector.
public static double Width(Connector connector)
Parameters
connector
ConnectorConnector
Returns
- double
the width of connector