Could the UnitsOf() function (from SpecialFunctions) please handle custom units? Or at least issue a sensible error message if an unknown unit is found.
unitsof.sm (2 KiB) downloaded 58 time(s).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx