MEPSupportUtils.CreateDuctworkStiffener
Description:
Create family based stiffener on the specified fabrication ductwork.
Create family based stiffener on the specified fabrication ductwork.
public static FamilyInstance CreateDuctworkStiffener(
Document document,
ElementId familySymbolId,
ElementId hostId,
double distanceFromHostEnd
)
-
documentThe document.
-
familySymbolIdThe id of a stiffener FamilySymbol.
-
hostIdThe id of the host ductwork.
-
DoubledistanceFromHostEndThe distance from the host primary end to place the hosted instance. Units are in feet (ft).
-
document is not a project document. -or- familySymbolId is not a valid Element identifier. -or- hostId is not a valid Element identifier. -or- Invalid familySymbolId for stiffeners. -or- Host is not a straight ductwork.
-
A non-optional argument was null
-
The distance from host primary end is out of range.
-
The profiles of family symbol and host are mismatch.
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.
-
Failed to create stiffener due to document regenerate error.