2017-08-01 01:38 PM
if (override_size = 0) then LOCK "symbol_width" symbol_width = 0.07 symbol_width_2 = symbol_width*glob_scale LOCK "symbol_width_2" endifThe symbol_width_2 = symbol_width*glob_scale needs to work when the glob_scale is changed. When I tried an if statement it wouldn't work and came up with an error. How do I compose the IF statement using this?
if (GLOB_MODPAR_NAME = "glob_scale") then symbol_width_2 = symbol_width*glob_scale endifThis code doesn't seem to update it.
if (GLOB_MODPAR_NAME = 'GLOB_SCALE') then override_size = 0 endif
2017-08-02 06:12 AM
2017-08-02 10:11 AM
allanp wrote:What about in the master script in Archicad 19? Is there any other way of making this work?
GLOB_MODPAR_NAME is a Parameter Scipt command,
in GDL for Archicad 21 it states
GLOB_SCALE works for :
2D Script
3D Script
Does not work for:
UI Script
Parameter Script
Property Script
so is a no go for Parameter commands like GLOB_MODPAR_NAME
it stopped working from Archicad 20
with a default value of 100 when used in the parameter script
2017-08-02 10:29 AM
symbol_width_2 = symbol_width*glob_scaleHowever you can not set the parameter value in the parameter list for 'symbol_width_2' because you can not set parameter values from the 2D/3D scripts - you can only override them.
2017-08-03 02:06 AM