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