License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Adding to a parameter in parameter script

Anonymous
Not applicable
If an integer parameter is increased by 1 in the parameter script, e.g.

parameters test = test + 1

the script may run multiple times during one user operation. A parameter that is assigned 1 to start with could then be 4 after one single user operation. Is there a workaround for this?
4 REPLIES 4
Barry Kelly
Moderator
Sure, see this post.

http://archicad-talk.graphisoft.com/viewtopic.php?p=186160&highlight=first+run#186160

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
Anonymous
Not applicable
Thanks Barry,

Didnt see that little gem in the gdl manual. Much appreciated.

Too bad it doesn't work for the master script aswell.
Anonymous
Not applicable
Hello Mark,

Did you try it in the master script - I think it
works there too.
Anonymous
Not applicable
Juha wrote:
Hello Mark,

Did you try it in the master script - I think it
works there too.
@Juha

You are right, my first attempt had a type I didn't see. All works well! thanks.

n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun)