2027 Method
Changes 0
M

Document.NewCrossFitting

Description:
Add a new family instance of a cross fitting into the Autodesk Revit document, using four connectors.
public FamilyInstance NewCrossFitting(
	Connector connector1,
	Connector connector2,
	Connector connector3,
	Connector connector4
)
  • connector1
    The first connector to be connected to the cross.
  • connector2
    The second connector to be connected to the cross.
  • connector3
    The third connector to be connected to the cross.
  • connector4
    The fourth connector to be connected to the cross.
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, connector3, or connector4 is.
  • Thrown when the connectors cannot be used for cross 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 cross fitting cannot be created.