GetBuiltInCategory

BuiltInCategory GetBuiltInCategory(this Element element)

Gets the BuiltInCategory of the element (if the category is mapped to a built-in). Returns BuiltInCategory.INVALID if unmapped or unavailable.

Parameters

  • elementElement

    The element instance.

Returns: A BuiltInCategory value, or BuiltInCategory.INVALID.

Example

BuiltInCategory bic = element.GetBuiltInCategory();