<?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 Text from a numeric value in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2270#M42287</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I want to print a report of a library part ( actually for a door schedule).&lt;BR /&gt;
I need to insert a dimension value into a text string. Im not sure if this is possible. Any ideas?&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 May 2023 08:38:31 GMT</pubDate>
    <dc:creator>Aussie John</dc:creator>
    <dc:date>2023-05-24T08:38:31Z</dc:date>
    <item>
      <title>Text from a numeric value</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2270#M42287</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I want to print a report of a library part ( actually for a door schedule).&lt;BR /&gt;
I need to insert a dimension value into a text string. Im not sure if this is possible. Any ideas?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 08:38:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2270#M42287</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2023-05-24T08:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Text from a numeric value</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2271#M42288</link>
      <description>I think you want translate a variable from Numeric type to String type. Isn't it?&lt;BR /&gt;
&lt;BR /&gt;
You can do it with STR() function, see more info in manual.</description>
      <pubDate>Fri, 14 Nov 2003 05:54:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2271#M42288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-14T05:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Text from a numeric value</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2272#M42289</link>
      <description>it must be Friday as i cant see any STR functions that do that</description>
      <pubDate>Fri, 14 Nov 2003 06:48:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2272#M42289</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2003-11-14T06:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Text from a numeric value</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2273#M42290</link>
      <description>The STR() function will convert a numeric value into a formatted text "string". You will need to decide what kind of formatting you want to have expressed and assign it to the raw value.&lt;BR /&gt;
&lt;BR /&gt;
This example takes the Object's raw width, "A", and raw height, "B", and formats the measured value into text strings defined as "String_W" and "String_H" formatted into feet and fractional inches with a precision of 1/16":&lt;BR /&gt;
String_W=str("%0.16ffi", A)&lt;BR /&gt;
String_H=str("%0.16ffi", B)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The GDL Manual section of the Help file can explain the formatting in depth.</description>
      <pubDate>Fri, 14 Nov 2003 16:10:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2273#M42290</guid>
      <dc:creator>David Larrew</dc:creator>
      <dc:date>2003-11-14T16:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Text from a numeric value</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2274#M42291</link>
      <description>Aussie John,&lt;BR /&gt;
&lt;BR /&gt;
  You puzzled me. You said you want to insert a dimension value into a string, did you?&lt;BR /&gt;
  Well, we know the type of a dimension value is numeric and all string function can not deal with numeric type value. So, I think you have to convert the value into a string type first, then you can do what you want.</description>
      <pubDate>Sat, 15 Nov 2003 12:02:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2274#M42291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-15T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Text from a numeric value</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2275#M42292</link>
      <description>i have two numerical values say A &amp;amp; B. I want a text string to  say "AxBmm". I think David suggestion will work. (I was too tired on friday to make any sense of the manual at that point!!)</description>
      <pubDate>Sun, 16 Nov 2003 00:21:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2275#M42292</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2003-11-16T00:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Text from a numeric value</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2276#M42293</link>
      <description>Try &lt;BR /&gt;
 &lt;BR /&gt;
text_dim = str(a*1000,3,0) + 'x' + str(b*1000,3,0) + 'mm' &lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
if a = 500 and b = 380 you will get &lt;BR /&gt;
 &lt;BR /&gt;
500x380mm &lt;BR /&gt;
 &lt;BR /&gt;
The *1000 is important or you will be 3 decimal places out. &lt;BR /&gt;
 &lt;BR /&gt;
if you want spaces put then in  ' x '  and  ' mm' &lt;BR /&gt;
 &lt;BR /&gt;
I do this all the time.  I have a little subroutine that draws a line with ticks to match my normal dims.</description>
      <pubDate>Sun, 16 Nov 2003 01:38:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-from-a-numeric-value/m-p/2276#M42293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-16T01:38:41Z</dc:date>
    </item>
  </channel>
</rss>

