<?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: Substitute Object Given X = 1 in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Substitute-Object-Given-X-1/m-p/324969#M2363</link>
    <description>&lt;P&gt;What I have found out, that CALL function must be in the form CALL ... PARAMETERS ... to work properly. It can be CALL ... PARAMETERS ALL or listed specific parameters, needed for this macro call. You can use CALL without PARAMETERS extension mostly when you call a text file with GDL extension rather then GSM file. Also you can specify a file name for your call as a string and after use it in CALL function: IF X=Y THEN s='Object A' ELSE s='Object B' : CALL s PARAMETERS ALL.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 08:39:57 GMT</pubDate>
    <dc:creator>Podolsky</dc:creator>
    <dc:date>2021-12-15T08:39:57Z</dc:date>
    <item>
      <title>Substitute Object Given X = 1</title>
      <link>https://community.graphisoft.com/t5/GDL/Substitute-Object-Given-X-1/m-p/324469#M2362</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wonder how you would go about scripting an object substitution. Given a parameter in&amp;nbsp;&lt;EM&gt;Object A,&lt;/EM&gt; I want to replace it with&amp;nbsp;&lt;EM&gt;Object B.&lt;/EM&gt;&amp;nbsp;I tried adding a&amp;nbsp;&lt;STRONG&gt;CALL&lt;/STRONG&gt;&amp;nbsp;for&amp;nbsp;&lt;EM&gt;Object B&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;and script skip to the start of each of the scripts within&amp;nbsp;&lt;EM&gt;Object A&lt;/EM&gt; but that does not seem to have worked...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a last resort I figured I could always extract the entire&amp;nbsp;&lt;EM&gt;Object A&amp;nbsp;&lt;/EM&gt;into a new object with&amp;nbsp;&lt;EM&gt;Object A&lt;/EM&gt; would then call though I would rather not add more objects. &lt;EM&gt;IF X = Y then CALL "Object A" else CALL "Object B"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 04:35:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Substitute-Object-Given-X-1/m-p/324469#M2362</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-12-08T04:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute Object Given X = 1</title>
      <link>https://community.graphisoft.com/t5/GDL/Substitute-Object-Given-X-1/m-p/324969#M2363</link>
      <description>&lt;P&gt;What I have found out, that CALL function must be in the form CALL ... PARAMETERS ... to work properly. It can be CALL ... PARAMETERS ALL or listed specific parameters, needed for this macro call. You can use CALL without PARAMETERS extension mostly when you call a text file with GDL extension rather then GSM file. Also you can specify a file name for your call as a string and after use it in CALL function: IF X=Y THEN s='Object A' ELSE s='Object B' : CALL s PARAMETERS ALL.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 08:39:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Substitute-Object-Given-X-1/m-p/324969#M2363</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-12-15T08:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute Object Given X = 1</title>
      <link>https://community.graphisoft.com/t5/GDL/Substitute-Object-Given-X-1/m-p/324973#M2364</link>
      <description>&lt;P&gt;I am not sure what I did, but a few days after this query, the object substitution was working...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 09:48:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Substitute-Object-Given-X-1/m-p/324973#M2364</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-12-15T09:48:33Z</dc:date>
    </item>
  </channel>
</rss>

