We have a situation where we are setting variables in a Visio drawing which looks up values from one element to be used with an automation script to set values in a different element. However, the variable includes the unit of measure i.e. Mbps. Is there a way to have the setvar shape data not include the unit of measure? We have tried using the option hideunit, though this works for parameter shape date, it does not appear to work for the setvar function.
Hi Steve, would it be an option to use the [RegexReplace:x,y,z] placeholder within the Execute shape data to remove the unit?
Kind Regards,
Jarno
Jarno, this ended up being a great solution. Following is what I used in the execute command ‘vFreq=[regexreplace: MHz, [var:vFreq],];’ which removed the MHz from the variable being passed to the automation script. Thanks for the help.
Maybe, I will give it a try and let you know. Thanks for the suggestion.