<?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 How to save Macro’s new values after closing the dialogue and without placing it in the model? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308698#M6985</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question is expected to be answered by professionals GDL programmers only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case:&lt;/P&gt;
&lt;P&gt;I have created a macro that should act as data repository, instead of using Archicad’s database or text I/O plug-ins for practicality reasons. And that macro would output to the caller library part a specific set of data that is to be provided by the caller library part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem that I’m facing is that in case that if the user wants to update the macro’s data values, s/he would need to open it using the GDL Editor, modify the values (UI is provided), then save it/overwrite it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Desires:&lt;/P&gt;
&lt;P&gt;I would like to know if there is a way, that the user would only have to edit those values using library parts, and they would automatically be saved, without the need of placing that macro in the plan or in the model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 09:17:58 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2024-09-09T09:17:58Z</dc:date>
    <item>
      <title>How to save Macro’s new values after closing the dialogue and without placing it in the model?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308698#M6985</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question is expected to be answered by professionals GDL programmers only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case:&lt;/P&gt;
&lt;P&gt;I have created a macro that should act as data repository, instead of using Archicad’s database or text I/O plug-ins for practicality reasons. And that macro would output to the caller library part a specific set of data that is to be provided by the caller library part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem that I’m facing is that in case that if the user wants to update the macro’s data values, s/he would need to open it using the GDL Editor, modify the values (UI is provided), then save it/overwrite it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Desires:&lt;/P&gt;
&lt;P&gt;I would like to know if there is a way, that the user would only have to edit those values using library parts, and they would automatically be saved, without the need of placing that macro in the plan or in the model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:17:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308698#M6985</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2024-09-09T09:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Macro’s new values after closing the dialogue and without placing it in the model?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308703#M6986</link>
      <description>&lt;P&gt;Maybe library global is the key? some update button there?&lt;/P&gt;&lt;P&gt;So the original content in csv...loads on demand and updates the content...&lt;/P&gt;&lt;P&gt;or even plain edit it as You have the UI...and UI in LG can be natively bigger&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 12:07:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308703#M6986</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2021-10-08T12:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Macro’s new values after closing the dialogue and without placing it in the model?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308707#M6987</link>
      <description>&lt;P&gt;A macro can be a place-able library part, but when called from another library part, it will not call the placed instance, it will call the default macro in the library - with its default values.&lt;/P&gt;
&lt;P&gt;So the only way to change values in that macro object is to open and edit the library part (macro) itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if it is a macro, you could have the parameters in the master object that makes the call.&lt;/P&gt;
&lt;P&gt;It will pass those values on to the macro with the call, so there is no need to modify and save the actual macro.&lt;/P&gt;
&lt;P&gt;You just set what you want in the master object.&lt;/P&gt;
&lt;P&gt;That way each instance of the master object can have its own settings.&lt;/P&gt;
&lt;P&gt;But I get the feeling that may not be what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Piotr suggested, you could create Library Global variables in the Model View Options.&lt;/P&gt;
&lt;P&gt;You can set the value in the MVO and all objects can read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 12:19:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308707#M6987</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-10-08T12:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Macro’s new values after closing the dialogue and without placing it in the model?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308719#M6988</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7331"&gt;@Barry Kelly&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In my case, putting the values in the caller defeats the whole purpose. Piotr idea just nails it&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 13:07:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/308719#M6988</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2021-10-08T13:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Macro’s new values after closing the dialogue and without placing it in the model?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/309146#M6989</link>
      <description>&lt;P&gt;Do you find that utilising the library global as a database slows things down?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last time I tried to store lots of values as a sort of master set for numerous parts in a library global it seemed to get clunky.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to chime in after it's been solved, have been toying with ways of getting objects to talk to each other for some time.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 04:48:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/309146#M6989</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2021-10-13T04:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Macro’s new values after closing the dialogue and without placing it in the model?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/309682#M6990</link>
      <description>&lt;P&gt;Depends how big is the database...have in mind that the matrix parameters passing has some restrictions.&lt;/P&gt;&lt;P&gt;I use it for changing the library language on the fly.&lt;/P&gt;&lt;P&gt;There may be a slowdown loading MVO - but it happens when there are a lot ui_infields for parameters visible. (I sometimes do a command to open edit to get it faster)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 06:02:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/309682#M6990</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2021-10-19T06:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Macro’s new values after closing the dialogue and without placing it in the model?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/310947#M6991</link>
      <description>&lt;P&gt;Excellent, thanks for the explanation Piotr. I'll give these ideas a go in my next attempt.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 01:15:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-save-Macro-s-new-values-after-closing-the-dialogue-and/m-p/310947#M6991</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2021-10-21T01:15:19Z</dc:date>
    </item>
  </channel>
</rss>

