We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2017-10-25 10:49 PM
UI_RADIOBUTTON "Blabla" someVariable[_i] x, y, w, hAnd it ran.
parameters UIvar = someArray[_i]and then write back the result
if GLOB_MODPAR_NAME = "UIvar" then someArray[_i] = UIvar parameters someArray = someArray endifThe only problem that a code like this is not aware of the real running context and will falsely initialize UIvar to someArray[_i] even if I manipulate the radiobutton. So there must be a selector for initializing UIvar (ot to put it into the else branch of this
2017-10-26 02:54 AM
Sam wrote:So you are saying that this doesn't work? ...
Even if I ask GDL version with aREQUESTand make a selection for this, it keeps crashing, regardless of the control reaching that part of code.
IF REQ("GDL_version")<=1.806 THEN ! VER 18 and below UI_RADIOBUTTON ..... ENDIF IF REQ("GDL_version")>1.806 THEN ! VER 19 and above UI_RADIOBUTTON{2} ..... ENDIFI use this a lot in my objects although I must admit very rarely in my Interface script.
2017-10-26 12:06 PM
2017-10-26 10:44 PM
IF REQ("GDL_version")<=1.806 THEN ! VER 18 and below UI_RADIOBUTTON ..... ENDIF IF REQ("GDL_version")>1.806 THEN ! VER 19 and above UI_RADIOBUTTON{2} ..... ENDIF
2018-02-07 05:09 PM