<?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: &amp;quot;trigger-button&amp;quot; to run the master-script of library-object in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237199#M3994</link>
    <description>Is the data populating parameters in the parameter list or just local variables in the master script?</description>
    <pubDate>Fri, 15 Jan 2021 00:02:32 GMT</pubDate>
    <dc:creator>Kristian Bursell</dc:creator>
    <dc:date>2021-01-15T00:02:32Z</dc:date>
    <item>
      <title>"trigger-button" to run the master-script of library-object</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237197#M3992</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Dear members,&lt;BR /&gt;&lt;BR /&gt;I have created a special zone-stamp-lib-object, which reads some information out of a txt-file.&lt;BR /&gt;I put this part of the script into the master-script part of the object.&lt;BR /&gt;As it is important that all of these zone-stamps contain the latest data (txt-file change every day), I must often update all the stamps to get the correct data from the txt-file.&lt;BR /&gt;&lt;BR /&gt;At the moment I use the menue "Library Developer" and the command "run parameter-script of all placed lib-objects". This works, but it lasts a long time, because it is updating ALL gdl-objects - although I only need the zone-stamps to be updated by running parameter-script (master-script). &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" border="0" /&gt; - there are about 1,5 tsd. zones and 10 to 20 tds. placed lib-objects in the projects...&lt;BR /&gt;&lt;BR /&gt;Is it possible to integrate some kind of "trigger-button" into "my special zone-stamp" using GDL, so I am able to update all stamps by activating them in 3D-window and "click" a parameter in the property-dialog of zone-stamps... &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" border="0" /&gt; &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" border="0" /&gt; &lt;BR /&gt;&lt;BR /&gt;...or do someone of you know another way to solve my problem &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" border="0" /&gt; &lt;BR /&gt;&lt;BR /&gt;hope you can help me &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" border="0" /&gt; &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" border="0" /&gt; &lt;BR /&gt;&lt;BR /&gt;best regards from vienna,&lt;BR /&gt;Yours, Klaus&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 11:29:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237197#M3992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T11:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: "trigger-button" to run the master-script of library-object</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237198#M3993</link>
      <description>I have not tested this, but shouldn't opening the zone tool dialog and just hitting "OK" (without changing anything) be enough?&lt;BR /&gt;
Normally this would trigger a "rebuild" of a GDL object.&lt;BR /&gt;
&lt;BR /&gt;
(Glad to see you've managed to deal with your zones issue via broadcasting txt files!)</description>
      <pubDate>Thu, 14 Jan 2021 22:06:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237198#M3993</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-01-14T22:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: "trigger-button" to run the master-script of library-object</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237199#M3994</link>
      <description>Is the data populating parameters in the parameter list or just local variables in the master script?</description>
      <pubDate>Fri, 15 Jan 2021 00:02:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237199#M3994</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-01-15T00:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: "trigger-button" to run the master-script of library-object</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237200#M3995</link>
      <description>Thank you for your replies  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Is the data populating parameters in the parameter list or just local variables in the master script?&lt;/BLOCKQUOTE&gt;
- Yes, the data from the txt-file are the value of the parameter "rkv_id", which will be exported to dwg-file into a attributed block.&lt;BR /&gt;
&lt;BR /&gt;
The funny thing is, that when I open the property-dialog of a zone - I see the right value in the field of the parameter. But when be exported to DWG-file, the attribute of the block get no value (if new) old value when altered.  I must  use the menue "Library Developer" and the command "run parameter-script of all placed lib-objects" to get the correctparameter-values exported to DWG-file.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Thank you for your help  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; ,&lt;BR /&gt;
&lt;BR /&gt;
Yours, Klaus</description>
      <pubDate>Fri, 15 Jan 2021 11:39:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237200#M3995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-15T11:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: "trigger-button" to run the master-script of library-object</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237201#M3996</link>
      <description>&lt;BLOCKQUOTE&gt;Is the data populating parameters in the parameter list or just local variables in the master script?&lt;BR /&gt;
- Yes, the data from the txt-file are the value of the parameter "rkv_id", which will be exported to dwg-file into a attributed block&lt;/BLOCKQUOTE&gt;

If you want the 2D representation to update without having to run the parameter script then you need to set it as a local variable in the master script. The way it seems to work is that the master script runs every time the view is refreshed (because the master script runs before every other script (such as the 2D which runs when the 2D view is refreshed). the 2D view is refreshed every time you pan or zoom, so very often.&lt;BR /&gt;
&lt;BR /&gt;
so best practice for setting parameter values is to first set it in a local variable in the master script like this:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;rkv_id = text-file-value
parameters rkv_id = rkv_id
&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jan 2021 23:14:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237201#M3996</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-01-18T23:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: "trigger-button" to run the master-script of library-object</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237202#M3997</link>
      <description>I have used this technique on my own zone stamp &lt;A href="https://www.youtube.com/watch?v=W2aoHwRbOCs" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://www.youtube.com/watch?v=W2aoHwRbOCs" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;https://www.youtube.com/watch?v=W2aoHwRbOCs&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;https://www.youtube.com/watch?v=W2aoHwRbOCs&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
As well as custom zone stamps I have built for firms working on very large projects; such as the Queen's Wharf mega-project in Brisbane by Cottee Parker Architects.&lt;BR /&gt;
&lt;BR /&gt;
This technique is so effective I now use it for all parameter values. It means I don't have to wait for the value to update in the parameter list before it can be put to use in the other scripts.</description>
      <pubDate>Mon, 18 Jan 2021 23:20:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237202#M3997</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-01-18T23:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: "trigger-button" to run the master-script of library-object</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237203#M3998</link>
      <description>Also you may want to consider using XML instead of TXT files as the TXT files have to be reloaded when they change but the XML changes come through instantaneously. Plus there are other benefits&lt;BR /&gt;
&lt;BR /&gt;
Navigating the XML files is more complex but Graphisoft have put together some documentation on how to do this here:&lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-use-the-gdl-xml-add-on" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-use-the-gdl-xml-add-on" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://gdl.graphisoft.com/tips-and-tric ... xml-add-on&amp;quot;&amp;gt;http://gdl.graphisoft.com/tips-and-tricks/how-to-use-the-gdl-xml-add-on&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/tips-and-tric ... xml-add-on"&gt;http://gdl.graphisoft.com/tips-and-tricks/how-to-use-the-gdl-xml-add-on&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;</description>
      <pubDate>Mon, 18 Jan 2021 23:25:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-trigger-button-quot-to-run-the-master-script-of-library/m-p/237203#M3998</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-01-18T23:25:58Z</dc:date>
    </item>
  </channel>
</rss>

