2027 Method
Changes 0
M

DuctInsulation.Create

Description:
Creates a new instance of duct insulation.
public static DuctInsulation Create(
	Document document,
	ElementId ductOrContentElementId,
	ElementId ductInsulationTypeId,
	double Thickness
)
  • document
    The document.
  • ductOrContentElementId
    The duct , fitting or accessory ElementId to which insulation will be added.
  • ductInsulationTypeId
    The duct insulation type. If the input duct insulation type is InvalidElementId, the default insulation type from the document will be used.
  • Double
    Thickness
    The thickness of the insulation.
Return Value DuctInsulation The newly created duct insulation.
  • This id does not represent a duct, fitting, or accessory element. -or- This duct insulation 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.