<?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: Masterend in Macro does not allow to pass parameters in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Masterend-in-Macro-does-not-allow-to-pass-parameters/m-p/590072#M6392</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the end statements need to be duplicated in each script which wants to return a value.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;! Macro master
butter = "Apple"

! Macro 2D
! no code
END butter 

! Macro 3D
! lots of code
END butter 

! Macro UI
! no code, return value not used in caller - leave empty&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 11:50:47 GMT</pubDate>
    <dc:creator>Peter Baksa</dc:creator>
    <dc:date>2024-02-27T11:50:47Z</dc:date>
    <item>
      <title>Masterend in Macro does not allow to pass parameters</title>
      <link>https://community.graphisoft.com/t5/GDL/Masterend-in-Macro-does-not-allow-to-pass-parameters/m-p/589673#M6380</link>
      <description>&lt;P&gt;I created a simple Macro, where I needed to define different variables which should be passed to the Caller. This works fine with the following Script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;! Macro
butter = "Apple"
END butter 

! Caller
CALL "var_define" PARAMETERS RETURNED_PARAMETERS butter
TEXT2 0, 0, butter&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I need to write different other scripts as well in the macro (UI, 2D, Parameter, etc.)&lt;BR /&gt;For this reason I have to define a "MASTEREND" in the Master-Script, because otherwise the other scripts would not be executed, because of the "END" in the Master-Script.&lt;BR /&gt;But now the following script does not work: the variable "butter" and its value is not passed to the Caller.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;! Macro
butter = "Apple"
GOTO "Masterend"
END butter 
"Masterend":

! Caller
CALL "var_define" PARAMETERS RETURNED_PARAMETERS butter 
TEXT2 0, 0, butter&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas to solve this problem?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:14:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Masterend-in-Macro-does-not-allow-to-pass-parameters/m-p/589673#M6380</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2024-09-26T11:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Masterend in Macro does not allow to pass parameters</title>
      <link>https://community.graphisoft.com/t5/GDL/Masterend-in-Macro-does-not-allow-to-pass-parameters/m-p/590072#M6392</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the end statements need to be duplicated in each script which wants to return a value.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;! Macro master
butter = "Apple"

! Macro 2D
! no code
END butter 

! Macro 3D
! lots of code
END butter 

! Macro UI
! no code, return value not used in caller - leave empty&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 11:50:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Masterend-in-Macro-does-not-allow-to-pass-parameters/m-p/590072#M6392</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2024-02-27T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Masterend in Macro does not allow to pass parameters</title>
      <link>https://community.graphisoft.com/t5/GDL/Masterend-in-Macro-does-not-allow-to-pass-parameters/m-p/590143#M6393</link>
      <description>&lt;P&gt;Thank You Peter, I will test it.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 16:17:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Masterend-in-Macro-does-not-allow-to-pass-parameters/m-p/590143#M6393</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2024-02-27T16:17:21Z</dc:date>
    </item>
  </channel>
</rss>

