<?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: GLOB_ELEVATION questions in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105647#M35459</link>
    <description>Here's some of the code - if that helps&lt;BR /&gt;
&lt;BR /&gt;
300:!outlet @ 1'-6"&lt;BR /&gt;
IF scale_size="48 scale" THEN GOSUB 301&lt;BR /&gt;
DEFINE STYLE STYLE_3 "Arial", 35 * MIN (a, b), 7, 0&lt;BR /&gt;
STYLE STYLE_3&lt;BR /&gt;
PEN cpen&lt;BR /&gt;
&lt;BR /&gt;
!***&lt;BR /&gt;
&lt;BR /&gt;
PEN   cpen&lt;BR /&gt;
LINE2    0'-0.0000", 0'-2.0157"+1.375", 1'-9.6614", 0'-2.0157"+1.375"&lt;BR /&gt;
LINE2    0'-0.0000", -0'-2.0157"+1.375", 1'-9.6614", -0'-2.0157"+1.375"&lt;BR /&gt;
CIRCLE2  1'-4.0079", 0'-0.0000"+1.375", 0'-6.0000"&lt;BR /&gt;
HOTSPOT2 0,+1.375",0&lt;BR /&gt;
HOTSPOT2 1'-4.0079",+1.375",0&lt;BR /&gt;
&lt;BR /&gt;
!***&lt;BR /&gt;
!!!!!THis is moveable text hotspot and text for more_text&lt;BR /&gt;
&lt;BR /&gt;
STYLE STYLE_3&lt;BR /&gt;
PEN cpen&lt;BR /&gt;
rot2 -symb_rotangle!!This rotate text to follow object&lt;BR /&gt;
unID = 1&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0, dd_y,unID, dd_x,1+128 : unID=unID+1!!!THis is moveable hotspot placement&lt;BR /&gt;
HOTSPOT2 -1, dd_y,unID, dd_x,3 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 dd_x,dd_y,unID, dd_x,2 : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 dd_x, 0,unID, dd_y,1+128 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 dd_x, -1,unID, dd_y,3 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 dd_x,dd_y,unID, dd_y,2 : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
ADD2 dd_x, dd_y&lt;BR /&gt;
TEXT2 0", 0",(more_text)!!the 0",0" is text hotspot placement&lt;BR /&gt;
DEL 2&lt;BR /&gt;
&lt;BR /&gt;
RETURN&lt;BR /&gt;
&lt;BR /&gt;
THanks again,&lt;BR /&gt;
Michele</description>
    <pubDate>Fri, 06 Jan 2006 19:34:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-01-06T19:34:27Z</dc:date>
    <item>
      <title>GLOB_ELEVATION questions</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105643#M35455</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;The following is code I have in an object that use  to work when I put it on the first floor of a building. I thought I got it to work on all stories but know it isn't working again. I want the object to put the height on the plan whenever it isn't 18". But it's putting the height all the time. Could anyone give me any hints as to what it could be.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michele&lt;BR /&gt;
&lt;BR /&gt;
!GLOB_ELEVATION!to each story&lt;BR /&gt;
!SYMB_POS_Z!to project zero &lt;BR /&gt;
MUL2  GLOB_SCALE/96,GLOB_SCALE/96          !Autoscaling&lt;BR /&gt;
IF ddoutlet=1 and GLOB_ELEVATION&amp;lt;18" OR GLOB_ELEVATION&amp;gt;18" THEN GOSUB 200&lt;BR /&gt;
IF ddoutlet=0 and GLOB_ELEVATION&amp;lt;18" OR GLOB_ELEVATION&amp;gt;18" THEN GOSUB 100 &lt;BR /&gt;
IF ddoutlet=1 and GLOB_ELEVATION=18" THEN GOSUB 400 &lt;BR /&gt;
IF ddoutlet=0 and GLOB_ELEVATION=18" THEN GOSUB 300&lt;BR /&gt;
IF Out=1 and GLOB_ELEVATION&amp;lt;18" OR GLOB_ELEVATION&amp;gt;18" THEN GOSUB 600&lt;BR /&gt;
IF Out=1 and GLOB_ELEVATION=18" THEN GOSUB 667&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
END:&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Jan 2006 23:22:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105643#M35455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-05T23:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_ELEVATION questions</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105644#M35456</link>
      <description>Michele,&lt;BR /&gt;
&lt;BR /&gt;
Try writing the conditional this way.&lt;BR /&gt;
IF ddoutlet=1 and GLOB_ELEVATION&amp;lt;&amp;gt;18" THEN...&lt;BR /&gt;
This way seems to be what you intend because it says litteraly &lt;BR /&gt;
IF ddoutlet equals 1 and GLOB_ELEVATION (IS NOT EQUAL TO) 18" THEN...&lt;BR /&gt;
&lt;BR /&gt;
My guess is that AC stops evaluting your conditional statements&lt;BR /&gt;
after the "and" expression when it evaluates to "true" and ignores the part after the "or" expression. Using parentheses to force AC to evaluate the&lt;BR /&gt;
whole statement won't work in this context.&lt;BR /&gt;
&lt;BR /&gt;
See if this alternate way works.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Fri, 06 Jan 2006 01:46:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105644#M35456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-06T01:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_ELEVATION questions</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105645#M35457</link>
      <description>I think ddoutlet and Out is a boolean (0 or 1). Try this:&lt;BR /&gt;
&lt;BR /&gt;
MUL2 GLOB_SCALE/96,GLOB_SCALE/96 !Autoscaling&lt;BR /&gt;
IF ddoutlet=1 then&lt;BR /&gt;
  IF GLOB_ELEVATION=18" THEN GOSUB 400 ELSE GOSUB 200&lt;BR /&gt;
  ELSE&lt;BR /&gt;
  IF GLOB_ELEVATION=18" THEN GOSUB 300 ELSE GOSUB 100&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
IF Out=1 THEN &lt;BR /&gt;
  IF GLOB_ELEVATION=18" THEN GOSUB 667 ELSE GOSUB 600&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
&lt;BR /&gt;
If this does not work try the comapriion this way:&lt;BR /&gt;
&lt;BR /&gt;
IF ABS(GLOB_ELEVATION-18")&amp;lt;0.0001 THEN ...&lt;BR /&gt;
&lt;BR /&gt;
It's possible, that it's the with AC9 coming up precision problem.&lt;BR /&gt;
&lt;BR /&gt;
But maybe the fault is in the subs.</description>
      <pubDate>Fri, 06 Jan 2006 07:37:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105645#M35457</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-01-06T07:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_ELEVATION questions</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105646#M35458</link>
      <description>I tried both of your guys ideas and It didn't change. I still get 18" showing up. We have our notes in a detail tool and the object looks fine there. It's @ 18" and it doesn't show the text. If I paste it into the floor plan and don't change the height of the object it's fine. Once I change the height and then go back to 18" it keeps showing the height.&lt;BR /&gt;
&lt;BR /&gt;
If you have any other ideas. It worked a couple of weeks ago and now all of a sudden it isn't working. UGGHHH!&lt;BR /&gt;
&lt;BR /&gt;
THanks,&lt;BR /&gt;
Michele</description>
      <pubDate>Fri, 06 Jan 2006 19:24:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105646#M35458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-06T19:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_ELEVATION questions</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105647#M35459</link>
      <description>Here's some of the code - if that helps&lt;BR /&gt;
&lt;BR /&gt;
300:!outlet @ 1'-6"&lt;BR /&gt;
IF scale_size="48 scale" THEN GOSUB 301&lt;BR /&gt;
DEFINE STYLE STYLE_3 "Arial", 35 * MIN (a, b), 7, 0&lt;BR /&gt;
STYLE STYLE_3&lt;BR /&gt;
PEN cpen&lt;BR /&gt;
&lt;BR /&gt;
!***&lt;BR /&gt;
&lt;BR /&gt;
PEN   cpen&lt;BR /&gt;
LINE2    0'-0.0000", 0'-2.0157"+1.375", 1'-9.6614", 0'-2.0157"+1.375"&lt;BR /&gt;
LINE2    0'-0.0000", -0'-2.0157"+1.375", 1'-9.6614", -0'-2.0157"+1.375"&lt;BR /&gt;
CIRCLE2  1'-4.0079", 0'-0.0000"+1.375", 0'-6.0000"&lt;BR /&gt;
HOTSPOT2 0,+1.375",0&lt;BR /&gt;
HOTSPOT2 1'-4.0079",+1.375",0&lt;BR /&gt;
&lt;BR /&gt;
!***&lt;BR /&gt;
!!!!!THis is moveable text hotspot and text for more_text&lt;BR /&gt;
&lt;BR /&gt;
STYLE STYLE_3&lt;BR /&gt;
PEN cpen&lt;BR /&gt;
rot2 -symb_rotangle!!This rotate text to follow object&lt;BR /&gt;
unID = 1&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0, dd_y,unID, dd_x,1+128 : unID=unID+1!!!THis is moveable hotspot placement&lt;BR /&gt;
HOTSPOT2 -1, dd_y,unID, dd_x,3 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 dd_x,dd_y,unID, dd_x,2 : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 dd_x, 0,unID, dd_y,1+128 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 dd_x, -1,unID, dd_y,3 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 dd_x,dd_y,unID, dd_y,2 : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
ADD2 dd_x, dd_y&lt;BR /&gt;
TEXT2 0", 0",(more_text)!!the 0",0" is text hotspot placement&lt;BR /&gt;
DEL 2&lt;BR /&gt;
&lt;BR /&gt;
RETURN&lt;BR /&gt;
&lt;BR /&gt;
THanks again,&lt;BR /&gt;
Michele</description>
      <pubDate>Fri, 06 Jan 2006 19:34:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105647#M35459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-06T19:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_ELEVATION questions</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105648#M35460</link>
      <description>I think I have a problem with the file because when I started a new dwg everything worked just fine! GOtta love problems!!!&lt;BR /&gt;
&lt;BR /&gt;
Thanks for all your help,&lt;BR /&gt;
Michele</description>
      <pubDate>Fri, 06 Jan 2006 20:27:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GLOB-ELEVATION-questions/m-p/105648#M35460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-06T20:27:27Z</dc:date>
    </item>
  </channel>
</rss>

