Jay Rennemeyer wrote:
F. Beister wrote:Understandable?
Understood -- but crazy. What possible value could there be in PARAMETERS ROOM_NAME = NewName not actually changing the value of ROOM_NAME? That's not an intiutive idea at all. When would I ever use a line of code like that expecting that nothing will change?
I know what Frank is getting at.
Archicad maintains the values in the parameter lists and the values within a script separate. Think of it like this: The Parameter lists controls the value of a parameter at the start of a script. What you do with it after that is up to you.
Code: Select all
PARAMETERS ROOM_NAME = NewName
PARAMETERS ROOM_NAME = NAME
is akin to saying:
At no time are you setting the script parameter ROOM_NAME to be NewName.
sets the Parameter List variable "Room Name" to be equal to NewName, not the ROOM_NAME variable inside the script.
overwrites the previous line, setting the Parameter List variable ROOM_NAME back to itself, since the ROOM_NAME variable in the script has not been changed.
Most programming languages have similar concepts (C++, Java, Visual Basic), where variables are edited locally, not globally, and mixing the two can cause a lot of headaches.