We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

Library Part parameters in schedules

Narska
Advocate
I have an object and I define a parameter TEST_PARAM and set a default value of 1.

In the master script, I define the value of TEST_PARAM = 2 and draw a text symbol in the 2D script with text2 0,0, TEST_PARAM and it shows 2.

I now create an interactive schedule and "add library part parameter" TEST_PARAM to the fields. The field in the schedule displays as 1 and the object on the floor plan display as 2.

What is going on here? How do I have the schedule show the true value as calculated in the master script?
Tomasz Mlynarski
New York based Architect
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Jochen Suehlo
Moderator
If you overwrite the value of a parameter variable in the master script, this new value is valid in all scripts, but the parameter itself is not overwritten. In the interactive schedule, therefore, the set parameter value is always output, since the Schedule only reads out the parameter and not the script.
To overwrite the parameter itself, use the PARAMETERS command.
e.g.
TEST_PARAM = 2
PARAMETERS TEST_PARAM = TEST_PARAM
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

View solution in original post

2 REPLIES 2
Solution
Jochen Suehlo
Moderator
If you overwrite the value of a parameter variable in the master script, this new value is valid in all scripts, but the parameter itself is not overwritten. In the interactive schedule, therefore, the set parameter value is always output, since the Schedule only reads out the parameter and not the script.
To overwrite the parameter itself, use the PARAMETERS command.
e.g.
TEST_PARAM = 2
PARAMETERS TEST_PARAM = TEST_PARAM
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Narska
Advocate
Thank you! this is very clear now.


Joachim wrote:
If you overwrite the value of a parameter variable in the master script, this new value is valid in all scripts, but the parameter itself is not overwritten. In the interactive schedule, therefore, the set parameter value is always output, since the Schedule only reads out the parameter and not the script.
To overwrite the parameter itself, use the PARAMETERS command.
e.g.
TEST_PARAM = 2
PARAMETERS TEST_PARAM = TEST_PARAM
Tomasz Mlynarski
New York based Architect