ConnectorElement.CreateCableTrayConnector(Document, Reference) Method

ConnectorElementCreateCableTrayConnector(Document, Reference) Method

Create a new cable tray ConnectorElement.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static ConnectorElement CreateCableTrayConnector(
	Document document,
	Reference planarFace
)
Public Shared Function CreateCableTrayConnector ( 
	document As Document,
	planarFace As Reference
) As ConnectorElement
public:
static ConnectorElement^ CreateCableTrayConnector(
	Document^ document, 
	Reference^ planarFace
)
static member CreateCableTrayConnector : 
        document : Document * 
        planarFace : Reference -> ConnectorElement 

Parameters

document  Document
The document to add the connector to.
planarFace  Reference
The planar face to place the connector on.

Return Value

ConnectorElement
The cable tray ConnectorElement.
Exceptions
ExceptionCondition
ArgumentException The reference is not a planar face. -or- document is not a family document.
ArgumentNullException A non-optional argument was null
InvalidOperationException Connector creation is not allowed in this family.
Remarks
Regenerates the document.
See Also