<?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 number to String in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10843#M38689</link>
    <description>Nope still no luck.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;</description>
    <pubDate>Wed, 02 Feb 2005 18:14:59 GMT</pubDate>
    <dc:creator>Red</dc:creator>
    <dc:date>2005-02-02T18:14:59Z</dc:date>
    <item>
      <title>Real number to String</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10839#M38685</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;How do you convert a real number to string?&lt;BR /&gt;
&lt;BR /&gt;
The reason I'm asking is that I'm trying to get the width of the real number so that I can place a fill behind it. But everytime I use "fillw = STW ('pitch') / 1000 * A_" its giving me the width of "pitch" and not the real number. So by converting it to string and/or text I could get the correct width, or is there away to do it with a real number?&lt;BR /&gt;
&lt;BR /&gt;
Hopefully this made so sense!  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Jeremy&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Feb 2005 14:15:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10839#M38685</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2005-02-02T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Real number to String</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10840#M38686</link>
      <description>Hello &lt;BR /&gt;
&lt;BR /&gt;
Try "fillw = STW (pitch) / 1000 * A_"</description>
      <pubDate>Wed, 02 Feb 2005 14:27:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10840#M38686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-02T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Real number to String</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10841#M38687</link>
      <description>&lt;BLOCKQUOTE&gt;Fmr wrote:&lt;BR /&gt;Hello &lt;BR /&gt;
&lt;BR /&gt;
Try "fillw = STW (pitch) / 1000 * A_"&lt;/BLOCKQUOTE&gt;

Sorry I should have mention that before. When trying that I get an error saying "String type expression required".&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the idea though.</description>
      <pubDate>Wed, 02 Feb 2005 14:55:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10841#M38687</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2005-02-02T14:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Real number to String</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10842#M38688</link>
      <description>Re&lt;BR /&gt;
&lt;BR /&gt;
Try this one :&lt;BR /&gt;
pitch=""&lt;BR /&gt;
define style "style_pitch" helvetica,c,5,0&lt;BR /&gt;
set style "style_pitch"&lt;BR /&gt;
text2 0,0,pitch&lt;BR /&gt;
fillw = STW (pitch) / 1000 * A_&lt;BR /&gt;
&lt;BR /&gt;
or look to this 2D Script of a Fc-Cadlink Object who works fine&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;compteur=""&lt;BR /&gt;
Request ("ID_of_Main","",compteur)&lt;BR /&gt;
compteur=pre+compteur+suf&lt;BR /&gt;
define style "style_compteur" helvetica,c,5,0&lt;BR /&gt;
set style "style_compteur"&lt;BR /&gt;
text2 0,0,compteur&lt;BR /&gt;
haut=0&lt;BR /&gt;
Request ("Height_of_style","style_compteur",haut)&lt;BR /&gt;
a=stw(compteur)/1000*A_&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 02 Feb 2005 15:28:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10842#M38688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-02T15:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Real number to String</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10843#M38689</link>
      <description>Nope still no luck.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 02 Feb 2005 18:14:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10843#M38689</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2005-02-02T18:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Real number to String</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10844#M38690</link>
      <description>I just hope that this one works &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
You can change the fill "23" just choose for the exemple&lt;BR /&gt;
This object just show the "a" variable in the middle of a fill, if you want another one just replace it in this "pitch=str("%m",a)"&lt;BR /&gt;
the "c" variable is the height of the font&lt;BR /&gt;
&lt;BR /&gt;
 &lt;FONT color="indigo"&gt;&lt;UL&gt;&lt;LI&gt;&lt;COLOR color="indigo"&gt;pitch="" &lt;BR /&gt;
 pitch=str("%m",a)&lt;BR /&gt;
 define style "style_pitch" helvetica,c,5,0 &lt;BR /&gt;
 set style "style_pitch" &lt;BR /&gt;
 text2 0,0,pitch &lt;BR /&gt;
&lt;BR /&gt;
Request ("Height_of_style","style_pitch",haut)&lt;BR /&gt;
&lt;BR /&gt;
 fillw=stw(pitch)/1000*A_ &lt;BR /&gt;
 fillh=haut/1000*A_&lt;BR /&gt;
&lt;BR /&gt;
fillw=fillw+dec*2&lt;BR /&gt;
fillh=fillh+dec*2&lt;BR /&gt;
&lt;BR /&gt;
add2 -fillw/2, -fillh/2   &lt;BR /&gt;
PEN          1&lt;BR /&gt;
SET FILL 23&lt;BR /&gt;
POLY2_B{2} 5, 2, 1, 0, &lt;BR /&gt;
 0, 0,  0, &lt;BR /&gt;
 0, 0,  1,&lt;BR /&gt;
 fillw, 0, 1, &lt;BR /&gt;
 fillw, fillh, 1, &lt;BR /&gt;
 0, fillh, 1, &lt;BR /&gt;
 0, 0, -1&lt;/COLOR&gt;&lt;/LI&gt;
&lt;/UL&gt;&lt;I&gt;&lt;/I&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 02 Feb 2005 19:38:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Real-number-to-String/m-p/10844#M38690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-02T19:38:37Z</dc:date>
    </item>
  </channel>
</rss>

