DuctLining.Create
Description:
Creates a new instance of duct lining.
Creates a new instance of duct lining.
public static DuctLining Create(
Document document,
ElementId ductOrContentElementId,
ElementId ductLiningTypeId,
double Thickness
)
-
documentThe document.
-
ductOrContentElementIdThe duct, fitting or accessory ElementId to which lining will be added.
-
ductLiningTypeIdThe duct lining type. If the input duct lining type is InvalidElementId, the default lining type from the document will be used.
-
DoubleThicknessThe thickness of the lining.
-
This id does not represent a duct, fitting, or accessory element. -or- This duct Lining type is invalid. -or- Thickness is not valid for assignment to insulation or lining elements.
-
A non-optional argument was null
-
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).
-
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.