<?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: Reflected Ceiling Label Script Problem in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85599#M28117</link>
    <description>&lt;BLOCKQUOTE&gt;"James Murray" wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
If you want to know the elevation of the bottom, that's GLOB_ELEVATION - SLAB_THICKNESS.&lt;BR /&gt;
&lt;BR /&gt;
Hi Murry.&lt;BR /&gt;
Thanks alot for that.  I assumed it was going to be something to do with Global something...&lt;BR /&gt;
&lt;BR /&gt;
Another question.  When I use this script, it only shows me the height in metres..&lt;BR /&gt;
&lt;BR /&gt;
example, I have a 20mm slab set at 2720mm from floor level, but it will show up as 2.7 in the label tool.  How do I get it to show 2700 as the height?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 01 May 2008 02:31:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-05-01T02:31:16Z</dc:date>
    <item>
      <title>Reflected Ceiling Label Script Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85597#M28115</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello guys.&lt;BR /&gt;
&lt;BR /&gt;
I'm getting quite into GDL scripting at the moment.  But I need some help from an expert.&lt;BR /&gt;
&lt;BR /&gt;
I have a Label that I am making.  I'm hoping that in my RCP plans this label which will be associated to the slab, and that the height of the slab will show up as the height shown on the rcp plan. &lt;BR /&gt;
&lt;BR /&gt;
So what I am trying to do is work out what the script for doing this would be.&lt;BR /&gt;
&lt;BR /&gt;
Slab Global height - slab thickness??&lt;BR /&gt;
&lt;BR /&gt;
If someone can help me out on this that would be muchly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
regards. Rob&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Apr 2008 09:15:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85597#M28115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-30T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reflected Ceiling Label Script Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85598#M28116</link>
      <description>GLOB_ELEVATION (aka J_) is the base elevation of an element relative to its home story. For a slab this refers to the top.&lt;BR /&gt;
&lt;BR /&gt;
If you want to know the elevation of the bottom, that's GLOB_ELEVATION - SLAB_THICKNESS.&lt;BR /&gt;
&lt;BR /&gt;
If you want the elevation relative to project zero, that's GLOB_CSTORY_ELEV (aka Q~) + GLOB_ELEVATION. (- SLAB_THICKNESS if desired)</description>
      <pubDate>Wed, 30 Apr 2008 11:47:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85598#M28116</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2008-04-30T11:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reflected Ceiling Label Script Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85599#M28117</link>
      <description>&lt;BLOCKQUOTE&gt;"James Murray" wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
If you want to know the elevation of the bottom, that's GLOB_ELEVATION - SLAB_THICKNESS.&lt;BR /&gt;
&lt;BR /&gt;
Hi Murry.&lt;BR /&gt;
Thanks alot for that.  I assumed it was going to be something to do with Global something...&lt;BR /&gt;
&lt;BR /&gt;
Another question.  When I use this script, it only shows me the height in metres..&lt;BR /&gt;
&lt;BR /&gt;
example, I have a 20mm slab set at 2720mm from floor level, but it will show up as 2.7 in the label tool.  How do I get it to show 2700 as the height?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 01 May 2008 02:31:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85599#M28117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-01T02:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reflected Ceiling Label Script Problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85600#M28118</link>
      <description>Units in text output is controlled by the &lt;B&gt;format_string&lt;/B&gt; parameter of the STR statement. It starts on page 206 of the manual. It looks pretty hairy but the examples are plentiful. I think the format for whole mm is "%.0mm", but you should check.&lt;BR /&gt;
&lt;BR /&gt;
So you could force your label to always display the dim in that format if you want.&lt;BR /&gt;

&lt;PRE&gt;heightValue= GLOB_ELEVATION-SLAB_THICKNESS
labelText=STR("%.0mm", heightValue)
TEXT2 0, 0, labelText
&lt;/PRE&gt;

Another way is to have the label find out the current dimension units setting and use that format automatically.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;heightValue= GLOB_ELEVATION-SLAB_THICKNESS
formatVar="" !! create string variable for request
dummy=REQUEST("Level_dimension","",formatVar) !! get format of dim
labelText=STR(formatVar, heightValue)
TEXT2 0, 0, labelText
&lt;/PRE&gt;

The REQUEST finds out the dim format and puts it in "formatVar", then you use that in the STR instead of "%.0mm".</description>
      <pubDate>Thu, 01 May 2008 13:55:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Reflected-Ceiling-Label-Script-Problem/m-p/85600#M28118</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2008-05-01T13:55:13Z</dc:date>
    </item>
  </channel>
</rss>

