Units in Dynamo 1

Hello, @Konrad_K_Sobon is proposing a fix for this at this moment, but no responses from the developers yet. Take a look here: https://github.com/DynamoDS/DynamoRevit/pull/1493

You can use a python script with someting like this in the mean time, here is a link to the docs: http://www.revitapidocs.com/2017/128dd879-fea8-5d7b-1eb2-d64f87753990.htm

import clr

clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

# Get parameter and unit type from element
element = UnwrapElement(IN[0])
parameter = element.GetParameters(IN[1])[0]
unitType = parameter.Definition.UnitType

# Get the display unit set for the unit type in the current document
formatOption = doc.GetUnits().GetFormatOptions(unitType)
displayUnit = formatOption.DisplayUnits

#Convert the value with UnitUtils
OUT = UnitUtils.ConvertFromInternalUnits(parameter.AsDouble(),displayUnit)