- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I hope someone can help but I am struggling to update a section of my code I have been utilising for a few years now but due to it being deprecated in Revit 2021 I need to update it.
I have read the few posts I have found on the subject as well as the Revit SDK Revit Platform API Changes and Additions but I feel as though I am having a senior moment and missing the obvious:
My code snippet is:
case StorageType.Double:
double? nullable = t.AsDouble(fp);
if (nullable.HasValue)
{
DisplayUnitType displayUnitType = fp.DisplayUnitType;
value = UnitUtils.ConvertFromInternalUnits(nullable.Value, displayUnitType).ToString();
break;
}
Note
t = FamilyType and fp = FamilyParameter
Any assistance would be appreciated in order to hopefully put an end to my senior moment!!
Thank you in advance.
Solved! Go to Solution.