<?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: Scripting text with intelligent lines in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50890#M28544</link>
    <description>Thanks Juha,&lt;BR /&gt;
I'm headed out for dinner but I will try it out as soon as I get home. &lt;BR /&gt;
&lt;BR /&gt;
Doug</description>
    <pubDate>Fri, 14 Mar 2008 22:40:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-14T22:40:35Z</dc:date>
    <item>
      <title>Scripting text with intelligent lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50888#M28542</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there a way to determine the physical length of a string of text. I'd like the lines to start a certain distance away from the beginning, and end of the text. I thought about just using a line at length A, centering the text on the line then placing a fill between the two. The Problem is that the fill would have to be able to change with the length of text as well. (See attached image) Or maybe I'm going about it the wrong way??&lt;BR /&gt;
&lt;BR /&gt;
Any thoughts would be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Doug&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/72816i0354C58241B360FD/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Phisical length of text string.PNG" title="Phisical length of text string.PNG" /&gt;</description>
      <pubDate>Fri, 14 Mar 2008 20:46:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50888#M28542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-14T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting text with intelligent lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50889#M28543</link>
      <description>Hello, this might help.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!2D-code-----------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
txt="Lorem ipsum"&lt;BR /&gt;
&lt;BR /&gt;
define style "style01" "Arial", (2.5/A_)*A_, 5, 0&lt;BR /&gt;
set style "style01"&lt;BR /&gt;
length_txt=STW(txt)/1000*A_&lt;BR /&gt;
&lt;BR /&gt;
text2 0, 0, txt&lt;BR /&gt;
line2 -a/2, 0, -length_txt/2, 0&lt;BR /&gt;
line2  a/2, 0,  length_txt/2, 0&lt;BR /&gt;
&lt;BR /&gt;
hotspot2  0, 0&lt;BR /&gt;
hotspot2 -a/2, 0&lt;BR /&gt;
hotspot2  a/2, 0&lt;BR /&gt;
&lt;BR /&gt;
!-------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Fri, 14 Mar 2008 22:28:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50889#M28543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-14T22:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting text with intelligent lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50890#M28544</link>
      <description>Thanks Juha,&lt;BR /&gt;
I'm headed out for dinner but I will try it out as soon as I get home. &lt;BR /&gt;
&lt;BR /&gt;
Doug</description>
      <pubDate>Fri, 14 Mar 2008 22:40:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50890#M28544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-14T22:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting text with intelligent lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50891#M28545</link>
      <description>This is close to what I'm looking for. I'm in the process of tweaking it and I'll show you what I come up with when it's done. One other question that has arisen......Is it possible to suppress zero inches in the script? I'm using ffi to show a length. What I get is (eg. 10'-0"). What I'd like to see in this case is 10'. Any thoughts?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Doug</description>
      <pubDate>Sun, 16 Mar 2008 18:11:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50891#M28545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-16T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting text with intelligent lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50892#M28546</link>
      <description>Doug:&lt;BR /&gt;
&lt;BR /&gt;
When formatting the string, try:&lt;BR /&gt;
&lt;FONT color="blue"&gt;txt=str("%0.0df", your_parameter)&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
More information about formatting can be found on pages 203-205 of the AC11 GDL Reference Guide.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Mon, 17 Mar 2008 12:49:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scripting-text-with-intelligent-lines/m-p/50892#M28546</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2008-03-17T12:49:20Z</dc:date>
    </item>
  </channel>
</rss>

