Pass number/string with leading 0's as paramater

Are you using python scripts or expressions?

I’d guess it’s easiest to define a custom property on whatever UI element you want to use, and then make an expression for that property to get the string to use in the tagpath. For an expression, the best way is probably to use “numberformat” like this:

"p" + numberFormat(5, "000")

This will return the string “p005”.

3 Likes