Python code that can be used in conjunction with Symbol.StringifyDecimal and Symbol.StringifyFraction to create Dynamo graphs that work with various unit display types in Revit.
Python Code
Note: This code is designed to work with Revit 2021 or later. It utilizes Forge schema API calls.