BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

glob_ui_button

Anonymous
Not applicable
what am i doing wrong?
ii'mtrying to make this button change a parameter called "alu".
the button Works, but the parameter wont change????
6 REPLIES 6
Anonymous
Not applicable
Hello,

You should have the parameter command
in the master or value script, not in the interface script.

Transfer everything in the master script and leave only lines

ui_dialog.....
ui_pict_button....
in the interface script.

In addition I suggest adding an endif
if glob_ui_button_id=1 then
    alu= 1
    parameters alu= 1
endif

Hope this helps/works.
Anonymous
Not applicable
Thank you very mutch MR.Vesen.
Now with your help, it works fine.
Once again thank you.
Anonymous
Not applicable
What about if i want the same button to turn it off?
Anonymous
Not applicable
Hi,
try a boolean variable in the interface script and an if..then..else.. in the master.
Anonymous
Not applicable
Hello,

This might work (not tested);

if glob_ui_button_id=1 then 
    alu= not(alu)
    parameters alu= alu
endif
This should work;

if glob_ui_button_id=1 then
    if alu= 1 then
        alu= 0
    else
        alu= 1
    endif
    parameters alu= alu
endif
Anonymous
Not applicable
Juha solution: smarter and shorter. Good point, thanks
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!