Text Formatting for Numerical Values in Custom Properties

Does anyone else ever try to do any text formatting of numerical values in custom properties?  I've found this incredibly challenging, but (in some cases) doable.

 

For example:  We have some parts where we just cut an extrusion to length (could be anywhere from 6" to 144"), and for our ERP system, our team wants to have part numbers where we add that length as a suffix to the part number for the stock extrusions, and to format that length specifically with three digits followed by two decimal places.  (9.375" cut length of XYZ becomes XYZ-009.38, 90.5" becomes XYZ-090.50, et al)

 

If you use configuration-specific properties, it's pretty straightforward, since you can use Excel functions within Design Tables.

 

For custom properties, I have a wilder workaround.  It works, but genuinely... I felt insane coming up with it.  I first create a series of Global Variables for each of the digits:

 

Each of these Global Variables can then be used in a Custom Property:

XYZ-"H@model.SLDPRT""T@model.SLDPRT""O@model.SLDPRT"."N@model.SLDPRT""D@model.SLDPRT"

 

It's a pretty wild workaround, but so far it's worked for what we want to use it for.  I don't have a method for how to do this sort of thing exclusively within the Custom Property interface.  You need a set of Global Variables or a Design Table to do any amount of numerical text formatting, which means (as far as I know) we can't do something like this to Weldment Cut List properties.

If anyone can prove me wrong, I'm open to hearing it.