You will need to type ...
Draw_scale = GLOB_SCALE
PARAMETERS Draw_scale = Draw_scale
Just setting the parameter does not actually set the variable value for use in the script - which is why you have to open the object so it can read the parameter value.
You will need to do the same for the 'scale_step' parameter as well.
Always set the parameter value first and then set the actual parameter.
i.e.
scale_step = act_bar_wid*Draw_scale/10
PARAMETERS scale_step = scale_step
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11