📅  最后修改于: 2022-03-11 14:49:10.636000             🧑  作者: Mango
#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