Table of Contents

Class Insulation

Namespace
OpenMEPRevit.Element
Assembly
OpenMEPRevit.dll

Acts as the base class for duct insulation, pipe insulation and duct lining elements.

public class Insulation
Inheritance
Insulation
Inherited Members

Methods

AddInsulation(Element, Element, double)

Creates a new instance of insulation.

public static Element? AddInsulation(Element element, Element insulationType, double thickness)

Parameters

element Element

The pipe, fitting, accessory Element to which insulation will be added.

insulationType Element

The insulation type. If the input pipe insulation type is InvalidElementId, the default insulation type from the document will be used.

thickness double

The thickness of the insulation.

Returns

Element

The newly created pipe insulation.

Examples

Exceptions

ArgumentException

This id does not represent a pipe, fitting, or accessory element. -or- This pipe insulation type is invalid. -or- Thickness is not valid for assignment to insulation or lining elements.

ArgumentNullException

A non-optional argument was null

DisabledDisciplineException

None of the following disciplines is enabled: Mechanical Electrical Piping.

InvalidOperationException

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).

ModificationForbiddenException

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.

ModificationOutsideTransactionException

The document has no open transaction.

GetInsulation(Element)

Returns the insulation elements associated to a given element.

public static List<Element> GetInsulation(Element element)

Parameters

element Element

The element.

Returns

List<Element>

A collection of the insulation elements.

Examples

Exceptions

ArgumentException

This id does not represent a valid host for insulation.

ArgumentNullException

A non-optional argument was NULL

GetLining(Element)

Returns the ids of the lining elements associated to a given element.

public static List<Element> GetLining(Element element)

Parameters

element Element

The element.

Returns

List<Element>

A collection of the ids of the lining elements.

Examples

Exceptions

ArgumentException

This id does not represent a duct, fitting, or accessory element.

ArgumentNullException

A non-optional argument was null

HostElement(Element)

The the host element for the insulation or lining element. 2012

[NodeCategory("Query")]
public static Element? HostElement(Element element)

Parameters

element Element

the insulation element

Returns

Element

Examples

IsAddInsulationOrLining(Element)

Checks if the element is added insulation or added lining.

[NodeCategory("Query")]
public static bool IsAddInsulationOrLining(Element element)

Parameters

element Element

the element to check

Returns

bool

true if element is insulation

Examples

Thickness(Element)

The id of the host element for the insulation or lining element. 2012

[NodeCategory("Query")]
public static double? Thickness(Element element)

Parameters

element Element

Returns

double?

Examples