DisplayUnITType Revit 2022

#if REVIT_2018 || REVIT_2019 || REVIT_2020 || REVIT_2021
                            Autodesk.Revit.DB.DisplayUnitType displayUnitType = familyParameter_0.DisplayUnitType;
                            result = UnitUtils.ConvertFromInternalUnits(num.Value, displayUnitType).ToString();
#else
                            ForgeTypeId forgeTypeId = familyParameter_0.GetUnitTypeId();
                            result = UnitUtils.ConvertFromInternalUnits(num.Value, forgeTypeId).ToString();
#endif
Sore Stork