Document New |
Add a new family instance of an transition fitting into the Autodesk Revit document, using two connectors.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

public FamilyInstance NewTransitionFitting(
Connector connector1,
Connector connector2
)
Parameters
- connector1 Connector
- The first connector to be connected to the transition.
- connector2 Connector
- The second connector to be connected to the transition.
Return Value
FamilyInstanceIf creation was successful then an family instance to the new object is returned, otherwise an exception with failure information will be thrown.

Exception | Condition |
---|---|
ArgumentNullException | Thrown when the input argument connector1 or connector2 is . |
ArgumentException | Thrown when the connectors cannot be used for transition creation. For example, they cannot be from the same element, they must be of the same domain, and the owner of connector1 should be a (flex) duct or pipe. |
InvalidOperationException | Thrown when transition fitting cannot be created. |
