Hi Jrantala,
This happens because the parameter script can be run multiple times, thus resulting in the calculation occurring twice or more. I had this exact problem last year and it's a simple solution.
Here is the topic I started. It has a working object in my last reply. Essentially you need to insert the code below from Michael Rensing (
Found in this topic) which only runs part of the script if it is the first time the script is being run.
Michael wrote:
This should do it.
Code:
n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun)
IF isFirstRun THEN
A=A+1
ELSE
A=A
ENDIF
Lachlan Green | Wilson Architects | BIM Manager, Architect
Started on AC9 | Currently AC27 & AC28 | BIMCloud | GDL
Mac Studio (14,13) M2 Max, 64GB, 1TB SSD | MacOS 14.7