<?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 Re: ArchiCAD 13 GDL &amp;quot;feature&amp;quot;? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157218#M21971</link>
    <description>Hello,&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;3. There is a change in AC13: you cannot change the value of the global variable in the first run. This killed the usual workaround.&lt;/BLOCKQUOTE&gt;

Does this mean all the globals &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_exclaim.gif" style="display : inline;" /&gt;</description>
    <pubDate>Thu, 17 Dec 2009 13:25:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-12-17T13:25:01Z</dc:date>
    <item>
      <title>ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157210#M21963</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;If the interface script for an object creates a button (ui_button) of type ui_function, the parameter script is called with the global variable GLOB_UI_BUTTON_ID set to the button ID when the user clicks on it. The parameter script can then respond to that button click and update all parameters as required in response to that click.&lt;BR /&gt;
&lt;BR /&gt;
However, a change was made in ArchiCAD 13. Up to a point, everything works in the same way; the user clicks a button, the global variable GLOB_UI_BUTTON_ID is set to the button ID, the parameter script is run, and everything is updated according to the button click. But then - only in AC13 - the same sequence is repeated exactly as if the user clicked on the button again. GLOB_UI_BUTTON_ID is set to the button ID and the parameter script run.&lt;BR /&gt;
&lt;BR /&gt;
No variable or flag indicates whether the parameter script has run because the user clicked on a button or if it is a subsequent 'echo', which means that the button function will be repeated as many times as the parameter script is run. I've been advised that developers should not count on it running a specific number of times either.&lt;BR /&gt;
&lt;BR /&gt;
Apparently this isn't a bug, but I'm at a loss to understand why this change has been made and how it could be beneficial. Has anyone been asking for this, or found it to be helpful in some way?&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;As an aside, the Modular Joinery object has been updated to work around this problem - otherwise clicking 'Add Row'/'Delete Row'/etc adds/removes more than 1 row at a time. Existing users should ask their reseller for the AC13 update&lt;E&gt;&lt;/E&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Dec 2009 11:40:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157210#M21963</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-12-14T11:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157211#M21964</link>
      <description>Afair it was the same in 12...I mean "worked twice"&lt;BR /&gt;
&lt;BR /&gt;
In some of my objects I used a normal "icon- parameter" instead.&lt;BR /&gt;
but I think I soleved it some way - I do not remember now...I will paste it later today if You are interested.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Mon, 14 Dec 2009 16:29:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157211#M21964</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2009-12-14T16:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157212#M21965</link>
      <description>&lt;BLOCKQUOTE&gt;Piotr wrote:&lt;BR /&gt;Afair it was the same in 12...I mean "worked twice"&lt;BR /&gt;
In some of my objects I used a normal "icon- parameter" instead.&lt;BR /&gt;
but I think I soleved it some way - I do not remember now...I will paste it later today if You are interested.&lt;/BLOCKQUOTE&gt;
No, I have objects developed many versions ago that changed their behaviour radically under AC13. And GS has confirmed this is new in AC13.&lt;BR /&gt;
&lt;BR /&gt;
I've already implemented a work-around, but my question is, "why has this changed?" and more importantly, "has anyone benefited from this change?". If there's no benefit or reason for this change, it can only be a bug (and should be fixed).</description>
      <pubDate>Mon, 14 Dec 2009 16:42:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157212#M21965</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-12-14T16:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157213#M21966</link>
      <description>In this case I have to check my table editor in 13...same usage (adding and removing rows/columns)...&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Mon, 14 Dec 2009 17:23:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157213#M21966</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2009-12-14T17:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157214#M21967</link>
      <description>Hi guys,&lt;BR /&gt;
&lt;BR /&gt;
Both of you are right.&lt;BR /&gt;
&lt;BR /&gt;
1. All AC versions execute parameter script as many times as needed to create implied changes iteratively.&lt;BR /&gt;
2. The value of GLOB_MODPAR_NAME and GLOB_BUTTON_ID are kept in these 'echo' runs. They always were.&lt;BR /&gt;
3. There is a change in AC13: you cannot change the value of the global variable in the first run. This killed the usual workaround.&lt;BR /&gt;
&lt;BR /&gt;
There is a solution though. (And I'm owing Ralph an answer about it in private for a few days now, sorry.) We added an APPLICATON_QUERY option for this purpose. A call looks like this:
&lt;PRE&gt;n = APPLICATON_QUERY  ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun)&lt;/PRE&gt;

isFirstRun will contain the Boole value showing if it's the first run.&lt;BR /&gt;
&lt;BR /&gt;
Since this function was added in the beta phase it isn't documented yet. I'll update the online documentation of APPLICATON_QUERY tomorrow.&lt;BR /&gt;
&lt;BR /&gt;
Sorry for the poor communication of this change...&lt;BR /&gt;
&lt;BR /&gt;
Regards,</description>
      <pubDate>Tue, 15 Dec 2009 17:45:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157214#M21967</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-12-15T17:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157215#M21968</link>
      <description>&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;We added an APPLICATON_QUERY option for this purpose. A call looks like this:
&lt;PRE&gt;n = APPLICATON_QUERY  ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
Thanks Zsolt - that's exactly what I needed.</description>
      <pubDate>Tue, 15 Dec 2009 21:48:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157215#M21968</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-12-15T21:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157216#M21969</link>
      <description>&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;I'll update the online documentation of APPLICATON_QUERY tomorrow.&lt;/BLOCKQUOTE&gt;

I updated the doc. Basic Library is available from the usual URL: &lt;A href="http://www.graphisoft.com/support/developer/documentation/LibraryDevKit/" target="_blank"&gt;&lt;LINK_TEXT text="http://www.graphisoft.com/support/devel ... aryDevKit/"&gt;http://www.graphisoft.com/support/developer/documentation/LibraryDevKit/&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Direct link to this chapter:&lt;BR /&gt;
&lt;A href="http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/13/LibDevGuide/Appendix_AppQueries.html#parameter_script" target="_blank"&gt;&lt;LINK_TEXT text="http://www.graphisoft.com/ftp/techsuppo ... ter_script"&gt;http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/13/LibDevGuide/Appendix_AppQueries.html#parameter_script&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Regards,</description>
      <pubDate>Wed, 16 Dec 2009 09:57:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157216#M21969</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-12-16T09:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157217#M21970</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;Existing users should ask their reseller for the AC13 update&lt;/BLOCKQUOTE&gt;

Got it! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; Thank you Ralph for such a fine object.</description>
      <pubDate>Thu, 17 Dec 2009 12:50:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157217#M21970</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2009-12-17T12:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157218#M21971</link>
      <description>Hello,&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;3. There is a change in AC13: you cannot change the value of the global variable in the first run. This killed the usual workaround.&lt;/BLOCKQUOTE&gt;

Does this mean all the globals &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_exclaim.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 17 Dec 2009 13:25:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157218#M21971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-17T13:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArchiCAD 13 GDL "feature"?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157219#M21972</link>
      <description>&lt;BLOCKQUOTE&gt;Juha wrote:&lt;BR /&gt;Hello,&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;3. There is a change in AC13: you cannot change the value of the global variable in the first run. This killed the usual workaround.&lt;/BLOCKQUOTE&gt;

Does this mean all the globals :shock:  :?:  :!:&lt;/BLOCKQUOTE&gt;

Yes. Definitely. You can change them in one run for the current run itself but not between elements or between runs. Your changes to the AC globals are dropped after your run. This fix was very important to increase stability and speed. This change doesn't affect scripts which don't communicate with other objects or later executions via globals.&lt;BR /&gt;
&lt;BR /&gt;
Regards,</description>
      <pubDate>Thu, 17 Dec 2009 13:53:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ArchiCAD-13-GDL-quot-feature-quot/m-p/157219#M21972</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-12-17T13:53:17Z</dc:date>
    </item>
  </channel>
</rss>

