SOLVED!
Incrementing a parameter by 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-12-20 11:35 PM
2010-12-20
11:35 PM
do you know a reliable way to increment a parameter by 1 in the parameter script? The problem is that the parameter script is run several times in order to recalculate all parameters... and that stuffs it up.
an example:
I want to increment (by one) the value of a parameter "A" each time you click the button on the custom UI tab.
Any thoughts?
::rk
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
Solution
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-12-20 11:56 PM
2010-12-20
11:56 PM
This should do it.
n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun) IF isFirstRun THEN A=A+1 ELSE A=A ENDIF
4 REPLIES 4
Solution
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-12-20 11:56 PM
2010-12-20
11:56 PM
This should do it.
n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun) IF isFirstRun THEN A=A+1 ELSE A=A ENDIF
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-12-21 01:44 AM
2010-12-21
01:44 AM
Thanks mate!
What documentation did you get this from?
edited:
I see... Basic Library Documentation...
Anyway, thanks again.
What documentation did you get this from?
edited:
I see... Basic Library Documentation...
Anyway, thanks again.
::rk
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-12-21 10:02 AM
2010-12-21
10:02 AM
DirectLink
Thanks. Very helpful.
Thanks. Very helpful.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-01-23 01:53 AM
2019-01-23
01:53 AM
Thank you Michael
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
