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.

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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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)
Learn and get certified!