<?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: GDL SCRIPTING show home elevation in text in 2d in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331259#M2641</link>
    <description>&lt;P&gt;Yes, because that is a number and you are using a string in your paragraph.&lt;/P&gt;
&lt;P&gt;You can't mix numbers and string values in text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to convert the number to a string ... STR("%m", &lt;EM&gt;GLOB_ELEVATION - GLOB_HSTORY_ELEV)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I think that is the correct syntax to convert to a meter value.&lt;/P&gt;
&lt;P&gt;Something like that anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 04:06:38 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2022-03-02T04:06:38Z</dc:date>
    <item>
      <title>GDL SCRIPTING show home elevation in text in 2d</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331232#M2637</link>
      <description>&lt;P&gt;I´m trying to build an electricity socket that is 3D modelled but in floor plan it only shows a 2D symbol with a editable text (for the circuit) and an autotext for its elevation to home stroy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea is, circuit goes above (and it´s a manual input)&lt;BR /&gt;Height goes below (it´s basically a height from home story or bottom level maybe)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="that´s the parameter for circuit" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19394iFB4A006B29DFCE8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-03-01 174443.png" alt="that´s the parameter for circuit" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;that´s the parameter for circuit&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="circuit goes above, height from home story goes below" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19395iAF5B543FCF398CEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-03-01 174456.png" alt="circuit goes above, height from home story goes below" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;circuit goes above, height from home story goes below&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have in the 2D script, I just need to know how to call the height in meters please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;paragraph "AC_PRG_13" 1, 0, 0, 0, 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;pen penAttribute_4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;set style "AC_STYLE_1"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;circuit&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;endparagraph&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;paragraph "AC_PRG_14" 1, 0, 0, 0, 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;set style "AC_STYLE_2"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;"h:"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;"1.2"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;" m"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;endparagraph&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 20:52:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331232#M2637</guid>
      <dc:creator>Tezak</dc:creator>
      <dc:date>2022-03-01T20:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: GDL SCRIPTING show home elevation in text in 2d</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331243#M2638</link>
      <description>&lt;P&gt;I would script this type of object so that it's origin is at your floor level, in which case you would use&amp;nbsp;&lt;EM&gt;zzyzx&amp;nbsp;&lt;/EM&gt;to offset the object vertically. This value can then be inserted as a parameter where required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are not doing that, you could use&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;GLOB_ELEVATION - GLOB_HSTORY_ELEV&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 01:38:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331243#M2638</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-03-02T01:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: GDL SCRIPTING show home elevation in text in 2d</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331253#M2639</link>
      <description>&lt;P&gt;Thanks but I tried with &lt;EM&gt;GLOB_ELEVATION - GLOB_HSTORY_ELEV and Archicad returns a "string type expression required in line...."&lt;BR /&gt;&lt;BR /&gt;On the other case, how do you set a floor level origin in that case?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 03:13:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331253#M2639</guid>
      <dc:creator>Tezak</dc:creator>
      <dc:date>2022-03-02T03:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: GDL SCRIPTING show home elevation in text in 2d</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331257#M2640</link>
      <description>&lt;P&gt;Oh true. Cannot use &lt;EM&gt;Autotext&lt;/EM&gt; in calculations. You would need to use a&amp;nbsp;&lt;EM&gt;Request&lt;/EM&gt; to get usable values...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;n = REQUEST ("Story_info", expr, nStories,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;index1, name1, elev1, height1 [,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;index2, name2, ...])&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corrected by Barry. Getting myself confused between globals and autotexts... even though globals are clearly denoted...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 07:31:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331257#M2640</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-03-02T07:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: GDL SCRIPTING show home elevation in text in 2d</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331259#M2641</link>
      <description>&lt;P&gt;Yes, because that is a number and you are using a string in your paragraph.&lt;/P&gt;
&lt;P&gt;You can't mix numbers and string values in text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to convert the number to a string ... STR("%m", &lt;EM&gt;GLOB_ELEVATION - GLOB_HSTORY_ELEV)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I think that is the correct syntax to convert to a meter value.&lt;/P&gt;
&lt;P&gt;Something like that anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 04:06:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331259#M2641</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-03-02T04:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: GDL SCRIPTING show home elevation in text in 2d</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331265#M2642</link>
      <description>&lt;P&gt;-&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 05:12:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331265#M2642</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-03-02T05:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: GDL SCRIPTING show home elevation in text in 2d</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331266#M2643</link>
      <description>&lt;P&gt;No, they are GLOBAL variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 05:13:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331266#M2643</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-03-02T05:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: GDL SCRIPTING show home elevation in text in 2d</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331284#M2644</link>
      <description>&lt;P&gt;Thanks a lot, It worked!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 12:26:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-SCRIPTING-show-home-elevation-in-text-in-2d/m-p/331284#M2644</guid>
      <dc:creator>Tezak</dc:creator>
      <dc:date>2022-03-02T12:26:46Z</dc:date>
    </item>
  </channel>
</rss>

