Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
Source by thebuildingcoder.typepad.com #
 
PREVIOUS NEXT
Tagged: #DisplayUnitType #revit
ADD COMMENT
Topic
Name
6+6 =