<?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 Number or Text Result in Macro in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222911#M3548</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi GDL Experts,&lt;BR /&gt;&lt;FONT color="#00BF00"&gt;&lt;BR /&gt;My goal is to have the user change the parent object, using drop down value lists, that select various subroutines from the child object. &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;In the child object, I use the values{2} code to create values lists. From the values lists, I use IF __ THEN __ ENDIF statements to select subroutines based on what the user selects from the dropdown value list. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I CALL an object using the CALL code, with a PARAMETER of the VALUES{2} of the child object, it only accepts a numerical number as a driver. e.g.&lt;BR /&gt;&lt;BR /&gt;Standard code in parent object:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;CALL "child" PARAMETERS TypeFromChild=1&lt;/PRE&gt;
&lt;BR /&gt;Question:&lt;BR /&gt;Is it possible to use a VALUES{2} list in the child and then, copy and paste the same VALUES{2} list into the parent? Then to drive the CALL code with a PARAMETER of the VALUES{2} from the parent? E.g. &lt;BR /&gt;&lt;BR /&gt;Ideal code in parent object:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;PARAMETER TypeToCallFromChild=TypeFromParent
CALL "child" PARAMETERS TypeFromChild=TypeToCallFromChild&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Thank you so much!&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 06:51:02 GMT</pubDate>
    <dc:creator>GDL Enthusiast</dc:creator>
    <dc:date>2021-09-14T06:51:02Z</dc:date>
    <item>
      <title>Number or Text Result in Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222911#M3548</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi GDL Experts,&lt;BR /&gt;&lt;FONT color="#00BF00"&gt;&lt;BR /&gt;My goal is to have the user change the parent object, using drop down value lists, that select various subroutines from the child object. &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;In the child object, I use the values{2} code to create values lists. From the values lists, I use IF __ THEN __ ENDIF statements to select subroutines based on what the user selects from the dropdown value list. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I CALL an object using the CALL code, with a PARAMETER of the VALUES{2} of the child object, it only accepts a numerical number as a driver. e.g.&lt;BR /&gt;&lt;BR /&gt;Standard code in parent object:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;CALL "child" PARAMETERS TypeFromChild=1&lt;/PRE&gt;
&lt;BR /&gt;Question:&lt;BR /&gt;Is it possible to use a VALUES{2} list in the child and then, copy and paste the same VALUES{2} list into the parent? Then to drive the CALL code with a PARAMETER of the VALUES{2} from the parent? E.g. &lt;BR /&gt;&lt;BR /&gt;Ideal code in parent object:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;PARAMETER TypeToCallFromChild=TypeFromParent
CALL "child" PARAMETERS TypeFromChild=TypeToCallFromChild&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Thank you so much!&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 06:51:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222911#M3548</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2021-09-14T06:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Number or Text Result in Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222912#M3549</link>
      <description>if the child object (typical referred to as macro) is not a placeable object then there is no need to create a dropdown menu for it. Instead this all should be done in the parent. Hence you need to ensure you have the same parameter(s) in the parent object. If you haven't added the parameter to the parent then it wont be able to be defined as a string, hence your numeric issue.&lt;BR /&gt;
&lt;BR /&gt;
The parent is the controller and the child is just called to produce the results. This sentence sounds like slave labor, so I suggest you use the terms "main" (not "master" because a masterGDL object is a specific type) and "macro" &lt;BR /&gt;
&lt;BR /&gt;
Macros (child objects) rarely need much of a parameter script as the user access of the parameters comes from the main (parent) object which the user places. If both main and macro are placeable then you have to set the values{2} in both.</description>
      <pubDate>Wed, 18 Aug 2021 23:06:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222912#M3549</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-08-18T23:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Number or Text Result in Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222913#M3550</link>
      <description>Hi Kirstian,&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much - you are so knowledgeable. I just tried it now and it works - so much fun! I will now try figure out the next step of the code &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
All the best!</description>
      <pubDate>Thu, 19 Aug 2021 13:33:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222913#M3550</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2021-08-19T13:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Number or Text Result in Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222914#M3551</link>
      <description>You are welcome, and yes GDL definitely is fun.&lt;BR /&gt;
Welcome to Archicad Talk also, you will find a lot of knowledgeable people here for everything Archicad related.</description>
      <pubDate>Thu, 19 Aug 2021 13:55:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Number-or-Text-Result-in-Macro/m-p/222914#M3551</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-08-19T13:55:12Z</dc:date>
    </item>
  </channel>
</rss>

