Document.NewTeeFitting
Description:
Add a new family instance of a tee fitting into the Autodesk Revit document, using three connectors.
Add a new family instance of a tee fitting into the Autodesk Revit document, using three connectors.
public FamilyInstance NewTeeFitting(
Connector connector1,
Connector connector2,
Connector connector3
)
-
connector1The first connector to be connected to the tee.
-
connector2The second connector to be connected to the tee.
-
connector3The third connector to be connected to the tee. This should be connected to the branch of the tee.
Return Value
FamilyInstance
If creation was successful then an family instance to the new object is returned,
and the transition fitting will be added at the connectors' end if necessary,
otherwise an exception with failure information will be thrown.
-
Thrown when the input argument connector1, connector2 or connector3 isnullNothingnullptra null reference (Nothingin Visual Basic).
-
Thrown when the connectors cannot be used for the tee creation. For example, they cannot be from the same element, they must be of the same domain, and the owner of the connectors should be a (flex) duct or pipe.
-
Thrown when tee fitting cannot be created.