#if REVIT2022 Units = Enum.GetName(typeof(Autodesk.Revit.DB.ForgeTypeId), param.Definition.GetDataType()); #else Units = Enum.GetName(typeof(Autodesk.Revit.DB.UnitType), param.Definition.UnitType); #endif