<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BUG: Application query prevents Updating of array parameters in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/BUG-Application-query-prevents-Updating-of-array-parameters/m-p/281061#M3148</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
In this thread &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10&amp;quot;&amp;gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt; I have discovered that you apply an "APPLICATION_QUERY" for updating an array parameter (to eliminate an index item) using this code:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", _isFirstRun)
&lt;/PRE&gt;

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.&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 31 Jan 2019 13:46:11 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2019-01-31T13:46:11Z</dc:date>
    <item>
      <title>BUG: Application query prevents Updating of array parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/BUG-Application-query-prevents-Updating-of-array-parameters/m-p/281061#M3148</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
In this thread &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10&amp;quot;&amp;gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&amp;amp;start=10&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt; I have discovered that you apply an "APPLICATION_QUERY" for updating an array parameter (to eliminate an index item) using this code:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", _isFirstRun)
&lt;/PRE&gt;

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.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 Jan 2019 13:46:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/BUG-Application-query-prevents-Updating-of-array-parameters/m-p/281061#M3148</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-01-31T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Application query prevents Updating of array parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/BUG-Application-query-prevents-Updating-of-array-parameters/m-p/281062#M3149</link>
      <description>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.&lt;BR /&gt;
When you change a value of any parameter or press the button in UI, ArchiCAD reads Parameter script second time.&lt;BR /&gt;
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.</description>
      <pubDate>Mon, 24 May 2021 21:11:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/BUG-Application-query-prevents-Updating-of-array-parameters/m-p/281062#M3149</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-24T21:11:50Z</dc:date>
    </item>
  </channel>
</rss>

