Wall property "Function"

thank you @jacob.small and @sovitek

1 Like

It is possible to use the System.Enum methods to get values and objects from the Revit enumerations

import clr
import System

from Autodesk.Revit.DB import *

value = 1
OUT = System.Enum.GetName(WallFunction, value)
# 'Exterior'
OUT = System.Enum.GetNames(WallFunction)
# 'Interior', 'Exterior', 'Foundation', ...

You can also use this method to get built in items for filters

bic = System.Enum.ToObject(BuiltInCategory, elem.Category.Id)