<?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: Real types - precision problems in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194121#M24435</link>
    <description>Juha,&lt;BR /&gt;
&lt;BR /&gt;
Worked perfectly!&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much!  I would have never figured that out (even though I had read those pg's several times today)</description>
    <pubDate>Wed, 23 Sep 2009 23:42:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-09-23T23:42:24Z</dc:date>
    <item>
      <title>Real types - precision problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194118#M24432</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I searched the forum for some help, but not being a GDL guru, I was unable to decipher if there was any useful information that could help me out. &lt;BR /&gt;
&lt;BR /&gt;
I am trying to add text to an object so that when the width of the object is changed the text changes automatically. i.e., a 16' marker board is labeled "MB16", and when changed to 12' the label changes to "MB12".  &lt;BR /&gt;
&lt;BR /&gt;
My first thought was to add the "MB" to the expression in the text2 "text2 D*0.5, (-A), ("MB" + D)", but I quickly realized that this expression is not a compatible type, so I added IF THEN statements to handle this (see attachment).  This works perfectly when the object is open (in the 2d Full View), but when placed in the project, returns "0" whenever the width is changed. &lt;BR /&gt;
&lt;BR /&gt;
I thought I had read that the "use of real types...precision problems" warning did not result in any actual problems (must have been wrong).  &lt;BR /&gt;
&lt;BR /&gt;
Any help is greatly appreciated.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Sep 2009 21:23:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194118#M24432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-23T21:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Real types - precision problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194119#M24433</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Basically you need to convert the width (A) to string before putting it together &lt;BR /&gt;
with the phrase "MB". &lt;BR /&gt;
&lt;BR /&gt;
In addition it is useful to convert the width on-the-fly so no need to know every &lt;BR /&gt;
possible situation beforehand.&lt;BR /&gt;
&lt;BR /&gt;
Here is a simple code for such. The imperial measurement caused a little extra &lt;BR /&gt;
lines here, you surely can make it shorter by investigating the GDL Reference Guide 12 &lt;BR /&gt;
pages 206-208.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;!--all this can be put in the master script
values "a" 1', range[1', ] step 1', 1'!--step by 1 foot
values "b" 0.2'

hotspot2 0, 0
hotspot2 a, 0
hotline2 0, 0, a, 0
hotline2 0, b, a, b

rect2 0, 0, a, b

define style "textstyle" "Arial", 2, 2, 0
style "textstyle"

wid= str("%fi", a/12)
len= strlen(wid)
wid= strsub(wid,1,len-1)

text2 a/2, 0, "W"+ wid&lt;/PRE&gt;

&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Wed, 23 Sep 2009 22:59:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194119#M24433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-23T22:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Real types - precision problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194120#M24434</link>
      <description>These feet and fractional inches really are a funny way to measure...I just wonder why the volume unit is a gallon and not 'head' &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Juha</description>
      <pubDate>Wed, 23 Sep 2009 23:05:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194120#M24434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-23T23:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Real types - precision problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194121#M24435</link>
      <description>Juha,&lt;BR /&gt;
&lt;BR /&gt;
Worked perfectly!&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much!  I would have never figured that out (even though I had read those pg's several times today)</description>
      <pubDate>Wed, 23 Sep 2009 23:42:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194121#M24435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-23T23:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Real types - precision problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194122#M24436</link>
      <description>Juha wrote:"These feet and fractional inches really are a funny way to measure.."&lt;BR /&gt;
Actually quite easy if you learn to measure with your toes.&lt;BR /&gt;
And in Texas, they do wear ten gallon hats:-))&lt;BR /&gt;
lec</description>
      <pubDate>Thu, 24 Sep 2009 05:22:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-types-precision-problems/m-p/194122#M24436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-24T05:22:44Z</dc:date>
    </item>
  </channel>
</rss>

