<?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: Storey Number in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73643#M32264</link>
    <description>This may be what you can use.&lt;BR /&gt;
&lt;BR /&gt;
GLOB_CH_STORY_DIST&lt;BR /&gt;
Old name: S~&lt;BR /&gt;
Type: numerical (integer value)&lt;BR /&gt;
Possible range: positive or negative or zero.&lt;BR /&gt;
Returns a number giving the relative position of the current story to the home story of the Library Part. The value of the variable is calculated by deducting the story number of the home story from the story number of the current story. Since there is no story-related information in the 3D Window, there the variable does not return a valid value.&lt;BR /&gt;
&lt;BR /&gt;
This is from  "Global GDL Parameters General Global Variables"&lt;BR /&gt;
Written by László Nagy &lt;BR /&gt;
&lt;BR /&gt;
Peter Devlin</description>
    <pubDate>Tue, 23 Jan 2007 04:35:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-01-23T04:35:15Z</dc:date>
    <item>
      <title>Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73639#M32260</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;is their any way of reading the storey number that an object is placed on&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jan 2007 01:36:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73639#M32260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-23T01:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73640#M32261</link>
      <description>&lt;BLOCKQUOTE&gt;damien wrote:&lt;BR /&gt;is their any way of reading the storey number that an object is placed on&lt;/BLOCKQUOTE&gt;
according to the GDL reference manual:
&lt;PRE&gt;REQUEST ("Story", "", index, story_name)&lt;/PRE&gt;

... but i'm not so flash with my GDL knowledge so wouldn't know how to implement it . . .&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
~/archiben</description>
      <pubDate>Tue, 23 Jan 2007 03:11:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73640#M32261</guid>
      <dc:creator>__archiben</dc:creator>
      <dc:date>2007-01-23T03:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73641#M32262</link>
      <description>thanks&lt;BR /&gt;
&lt;BR /&gt;
 but i was looking to control number rather than the name so that i could choose which stories to show a particular object on say storey 2-5 excluding storey 1 and below</description>
      <pubDate>Tue, 23 Jan 2007 03:58:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73641#M32262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-23T03:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73642#M32263</link>
      <description>Hi Damien&lt;BR /&gt;
&lt;BR /&gt;
Index is story number  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 23 Jan 2007 04:10:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73642#M32263</guid>
      <dc:creator>Ben Cohen</dc:creator>
      <dc:date>2007-01-23T04:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73643#M32264</link>
      <description>This may be what you can use.&lt;BR /&gt;
&lt;BR /&gt;
GLOB_CH_STORY_DIST&lt;BR /&gt;
Old name: S~&lt;BR /&gt;
Type: numerical (integer value)&lt;BR /&gt;
Possible range: positive or negative or zero.&lt;BR /&gt;
Returns a number giving the relative position of the current story to the home story of the Library Part. The value of the variable is calculated by deducting the story number of the home story from the story number of the current story. Since there is no story-related information in the 3D Window, there the variable does not return a valid value.&lt;BR /&gt;
&lt;BR /&gt;
This is from  "Global GDL Parameters General Global Variables"&lt;BR /&gt;
Written by László Nagy &lt;BR /&gt;
&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Tue, 23 Jan 2007 04:35:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73643#M32264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-23T04:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73644#M32265</link>
      <description>thanks all should be ok from here&lt;BR /&gt;
thanks again</description>
      <pubDate>Tue, 23 Jan 2007 06:50:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73644#M32265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-23T06:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73645#M32266</link>
      <description>A somewhat related question, I am trying to make a library part to represent switches and light fixtures, that are 'smart' enough to know (and display) their height relative to current story (not project zero or reference levels). I can't think of something similar to ape the code from - can someone suggest such an object, or how to do this?</description>
      <pubDate>Fri, 02 Feb 2007 05:14:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73645#M32266</guid>
      <dc:creator>Andy Thomson</dc:creator>
      <dc:date>2007-02-02T05:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73646#M32267</link>
      <description>Have you tried &lt;B&gt;GLOB_ELEVATION&lt;/B&gt;?</description>
      <pubDate>Fri, 02 Feb 2007 07:56:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73646#M32267</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2007-02-02T07:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73647#M32268</link>
      <description>Would the "Show Element Information" Palette work for you? It will list the items home storey among other things.</description>
      <pubDate>Fri, 02 Feb 2007 13:47:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73647#M32268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-02T13:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73648#M32269</link>
      <description>&lt;BLOCKQUOTE&gt;andyro wrote:&lt;BR /&gt;A somewhat related question, I am trying to make a library part to represent switches and light fixtures, that are 'smart' enough to know (and display) their height relative to current story (not project zero or reference levels). I can't think of something similar to ape the code from - can someone suggest such an object, or how to do this?&lt;/BLOCKQUOTE&gt;

Andyro,&lt;BR /&gt;
try SYMB_POS_Z-GLOB_HSTORY_ELEV&lt;BR /&gt;
&lt;BR /&gt;
Below is an image of an electrical library I was working on quite sometime ago. All the objects have an option to display height...they also show a basic faceplate at the appropriate height in 3d.&lt;BR /&gt;
&lt;BR /&gt;
HTH &lt;BR /&gt;
Dan K&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/11058iD79727AFE3A4153F/image-size/large?v=v2&amp;amp;px=999" border="0" alt="elecht.jpg" title="elecht.jpg" /&gt;</description>
      <pubDate>Fri, 02 Feb 2007 14:21:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73648#M32269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-02T14:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73649#M32270</link>
      <description>Hello,&lt;BR /&gt;
I had composed a reply to Andy's question last night&lt;BR /&gt;
essentially saying what Frank said, use GLOB_ELEVATION.&lt;BR /&gt;
But I reread Andy's post and decided that he was not&lt;BR /&gt;
asking for GDL help but asking if there was some&lt;BR /&gt;
object that did what he wanted that he could copy&lt;BR /&gt;
the code from. I decided not post a reply because&lt;BR /&gt;
I could not think of an object that did exactly what Andy wanted.&lt;BR /&gt;
&lt;BR /&gt;
It looks like maybe Dan's objects might be what Andy needs.&lt;BR /&gt;
&lt;BR /&gt;
While we are on the subject, My GDL manual says&lt;BR /&gt;
GLOB_ELEVATION returns the height of the object&lt;BR /&gt;
from the object's home story but László Nagy says in&lt;BR /&gt;
"Global GDL Parameters General Global Variables"&lt;BR /&gt;
that GLOB_ELEVATION returns the height of the object&lt;BR /&gt;
from project zero.&lt;BR /&gt;
&lt;BR /&gt;
I have not tested to find out which is correct &lt;BR /&gt;
and wondered if anyone happens to know.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Sat, 03 Feb 2007 00:56:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73649#M32270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-03T00:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73650#M32271</link>
      <description>Hello Andy,&lt;BR /&gt;
Since I did not know of a library part that did what you wanted,&lt;BR /&gt;
I edited a 2D library part which is an electrical symbol&lt;BR /&gt;
to do what I think what you want it to do.&lt;BR /&gt;
See attached.&lt;BR /&gt;
Right now, all it does is display it's height from it's&lt;BR /&gt;
home story and you have to, in the settings dialog,&lt;BR /&gt;
assign it a height but it can be made to&lt;BR /&gt;
elevate itself  automatically by changing the script.&lt;BR /&gt;
&lt;BR /&gt;
As to my question about GLOBAL_ELEVATION&lt;BR /&gt;
the manual is correct.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Sat, 03 Feb 2007 05:31:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73650#M32271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-03T05:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73651#M32272</link>
      <description>Thanks Peter. I am trying to figure out what I am looking at here, the difference between:&lt;BR /&gt;

&lt;PRE&gt;sp=" "

ht=glob_elevation


ss=str("%0.64fi",ht)

TEXT2    0', 0', "4"+sp+"@"+sp+ss&lt;/PRE&gt;

and:
&lt;PRE&gt;		ADD2 0, -rad*2
	TEXT2 0, 0, STR("%2.1fi",J_)&lt;/PRE&gt;

Somebody gave me a part with the latter, no glob_elevation and it works just the same...I am no GDL guy, I am just in the babysteps beginner mode, of staring at this for a long time until I understand what is going on. What is the STR("%___fi",_) bit referring to?</description>
      <pubDate>Mon, 05 Feb 2007 02:15:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73651#M32272</guid>
      <dc:creator>Andy Thomson</dc:creator>
      <dc:date>2007-02-05T02:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73652#M32273</link>
      <description>Hello Andy&lt;BR /&gt;
STR("%___fi",_) is a function that converts a numeric variable&lt;BR /&gt;
into a string so that the text2 command can use it.&lt;BR /&gt;
Look it up under "string functions" in the GDL manual.&lt;BR /&gt;
&lt;BR /&gt;
"J_" is the old name for GLOB_ELEVATION so the two pieces of code&lt;BR /&gt;
work the same because they are the same except for the transformations&lt;BR /&gt;
needed to get the text out of the way of the symbol.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Mon, 05 Feb 2007 03:25:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73652#M32273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-05T03:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Storey Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73653#M32274</link>
      <description>&lt;BLOCKQUOTE&gt;Peter wrote:&lt;BR /&gt;
"J_" is the old name for GLOB_ELEVATION so the two pieces of code&lt;BR /&gt;
work the same because they are the same except for the transformations&lt;BR /&gt;
needed to get the text out of the way of the symbol.&lt;BR /&gt;
Peter Devlin&lt;/BLOCKQUOTE&gt;

Ah! Thank you....that makes sense...</description>
      <pubDate>Mon, 05 Feb 2007 03:28:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Storey-Number/m-p/73653#M32274</guid>
      <dc:creator>Andy Thomson</dc:creator>
      <dc:date>2007-02-05T03:28:38Z</dc:date>
    </item>
  </channel>
</rss>

