Using the API to Create a Dictionary that Maps Revit Display Units to Unit Symbols

From the The Building Coder website:

Unit Abbreviations

Håvard Dagsvik of Symetri implemented code to automatically generate a dictionary mapping the Revit DisplayUnitType to corresponding UnitSymbolType display strings.

[…]

In Håvard’s own words:

I’ve been looking at extracting a complete list of unit abbreviations for each ParameterType and their DisplayUnitTypes. In total, roughly 210, I think.

I looked at what was around on your blog and elsewhere. Your manually generated list of unit…
Read more