Force Uppercase in Text Fields

I have a text field that is linked to model units, but the result is lowercase. I can’t seem to find a way to force the result to be uppercase when using model units in a text field. Is this possible without using a script?

Rhino v7 added the ability to parse text functions using a subset of the Python and .Net languages (IronPython). These additional IronPython functions are mostly just math and string functions. So adding .upper() for Python or .ToUpper() for .Net to your function should return the string to upper case result.

Example:

Python
DIMENSION UNITS: %<ModelUnits().upper()>%

.Net
DIMENSION UNITS: %<ModelUnits().ToUpper()>%

3 Likes

That did it. Thanks Tavis!

1 Like