<?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: What is a macro? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375164#M1052</link>
    <description>&lt;P&gt;This is a question I asked because I wanted to hear your explanation.&lt;BR /&gt;Since I am a non-English speaking person, it is difficult to understand the text and I do not understand the contents of the manual alone.&lt;BR /&gt;I was asking for a bit more detail.&lt;BR /&gt;I would be more than grateful if you could explain with an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how do you create macros?&lt;BR /&gt;All I found was to turn off &lt;SPAN&gt;placeable&lt;/SPAN&gt;, is there more?&lt;/P&gt;</description>
    <pubDate>Sun, 02 Apr 2023 14:34:02 GMT</pubDate>
    <dc:creator>LeeJaeYoung</dc:creator>
    <dc:date>2023-04-02T14:34:02Z</dc:date>
    <item>
      <title>What is a macro?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375147#M1050</link>
      <description>&lt;P&gt;Is a macro only a placeable off?&lt;BR /&gt;I want to know why you do macros.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 03:47:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375147#M1050</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2023-04-02T03:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is a macro?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375160#M1051</link>
      <description>&lt;P&gt;You use macros if you have the same routines, that you would like to use in more than 1 object.&lt;BR /&gt;See: &lt;A href="https://gdl.graphisoft.com/reference-guide/macro-objects" target="_blank"&gt;https://gdl.graphisoft.com/reference-guide/macro-objects&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 12:42:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375160#M1051</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-04-02T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is a macro?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375164#M1052</link>
      <description>&lt;P&gt;This is a question I asked because I wanted to hear your explanation.&lt;BR /&gt;Since I am a non-English speaking person, it is difficult to understand the text and I do not understand the contents of the manual alone.&lt;BR /&gt;I was asking for a bit more detail.&lt;BR /&gt;I would be more than grateful if you could explain with an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how do you create macros?&lt;BR /&gt;All I found was to turn off &lt;SPAN&gt;placeable&lt;/SPAN&gt;, is there more?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 14:34:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375164#M1052</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2023-04-02T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is a macro?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375170#M1053</link>
      <description>&lt;P&gt;A typical example where I use a macro, is when I want to offer different languages in the object.&lt;BR /&gt;The Master-Script of the object calls the Macro:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALL "Flexi_Zone_Dictionary" PARAMETERS ALL int_language = int_language  RETURNED_PARAMETERS dict_words&lt;/LI-CODE&gt;
&lt;P&gt;The Macro has the following in the Master:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DICT local

IF int_language = 1 THEN
	local.de.raumnummer 	= "Raumnummer"
	local.de.raumname 	= "Raumname"
ENDIF

IF int_language = 2 THEN
	local.en.raumnummer 	= "Zone number"
	local.en.raumname 	= "Zone name"
ENDIF

DICT dict_words

IF int_language = 1 THEN dict_words = local.de
IF int_language = 2 THEN dict_words = local.en

PARAMETERS dict_words = dict_words

END dict_words&lt;/LI-CODE&gt;
&lt;P&gt;Explanation:&lt;BR /&gt;DICT local declares a Dictionary for the translated words.&lt;/P&gt;
&lt;P&gt;local.de.raumnummer = "Raumnummer" is one dictionary entry for the language German (de) for the word Roomnumber (raumnummer)&lt;/P&gt;
&lt;P&gt;DICT dict_words declares a 2nd Dictionary which is then stored in the parameter dict_words.&lt;/P&gt;
&lt;P&gt;END dict_words returnes the values of dict_words to the calling object.&lt;BR /&gt;&lt;BR /&gt;In the main object you can then replace a word in your own language by a dictionary term.&lt;BR /&gt;Normally you would write &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TEXT2, 0, 0, "Raumname"&lt;/LI-CODE&gt;
&lt;P&gt;Now you can write&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TEXT2 0, 0, dict_words.raumname&lt;/LI-CODE&gt;
&lt;P&gt;When you then change the parameter int_language from "de" to "en", the 2D-content will change its language as well. Create for this a VALUES field to let the user choose the language:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VALUES{2} "int_language", 1, "de", 2, "en"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other examples are opening lines for windows, door closers, profiles for curtain wall windows etc.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 16:38:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375170#M1053</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-04-02T16:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: What is a macro?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375175#M1054</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But what I found was that the placeable was not checked in the macro. So, is there a macro that sets other options?&lt;/P&gt;
&lt;P&gt;Or can I just call all gsm files and use them?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 18:10:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375175#M1054</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2023-04-02T18:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is a macro?</title>
      <link>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375177#M1055</link>
      <description>&lt;P&gt;You can call all gsm-files to use them as macro. If "placeable" is unchecked, it will not be found as object in the object settings dialog. You can use a macro both as called object and in the case it is placeable as "standalone" object.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 18:37:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/What-is-a-macro/m-p/375177#M1055</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-04-02T18:37:54Z</dc:date>
    </item>
  </channel>
</rss>

