BUG: Application query prevents Updating of array parameters

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-01-31 02:46 PM
2019-01-31
02:46 PM
In this thread
n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", _isFirstRun)The arrays will not update, and thus, the values stored in the original array will always stay, even when you follow the standard indications of Dynamic Array object.
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.

1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-05-24 11:11 PM
2021-05-24
11:11 PM
How I understand this command - when you open object settings, ArchiCAD reads all relevant scripts. First Master script, then 2D or 3D script, then parameter script and UI script.
When you change a value of any parameter or press the button in UI, ArchiCAD reads Parameter script second time.
This request tells you - is it the first run of Parameter script or not. I'm not sure how it can prevent updating anything, only if you use variable _isFirstRun in some conditions.
When you change a value of any parameter or press the button in UI, ArchiCAD reads Parameter script second time.
This request tells you - is it the first run of Parameter script or not. I'm not sure how it can prevent updating anything, only if you use variable _isFirstRun in some conditions.