Answers for "#if and #endif forge type unit"

0

#if and #endif forge type unit

#if REVIT2019 || REVIT2020
double valueInInternalUnits = UnitUtils.ConvertToInternalUnits(valueInMeters,
  DisplayUnitType.DUT_METERS);
#else
// Revit 2021+
double valueInInternalUnits = UnitUtils.ConvertToInternalUnits(valueInMeters, UnitTypeId.Meters);
#endif
Posted by: Guest on June-30-2021

Browse Popular Code Answers by Language