<?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 Wrap text within an object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292619#M5730</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there a way to wrap text on a 2D object and then making the object expand based on the amount of text inside? How difficult would this be to do?&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 22 Jun 2017 15:46:54 GMT</pubDate>
    <dc:creator>JGoode</dc:creator>
    <dc:date>2017-06-22T15:46:54Z</dc:date>
    <item>
      <title>Wrap text within an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292619#M5730</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there a way to wrap text on a 2D object and then making the object expand based on the amount of text inside? How difficult would this be to do?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:46:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292619#M5730</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-06-22T15:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wrap text within an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292620#M5731</link>
      <description>If I understood your question correctly, the simple answer is yes.&lt;BR /&gt;
&lt;BR /&gt;
You may have to define your text width first
&lt;PRE&gt;actualWidth=(your_dimension)*1000&lt;/PRE&gt;
You first create a TEXTBLOCK which has width as one of parameters, and then use RICHTEXT2 do display its contents.
&lt;PRE&gt;TEXTBLOCK block_name, actualWidth, anchor, angle, width factor, charspace factor, fixed height, "Hello!"
richtext2 0, 0, block_name&lt;/PRE&gt;
Then you use a REQUEST command to acquire the width and height of the above.
&lt;PRE&gt;your_dimensions = REQUEST("TEXTBLOCK_INFO", block_name, width, height)&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jun 2017 18:43:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292620#M5731</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2017-06-22T18:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wrap text within an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292621#M5732</link>
      <description>&lt;BLOCKQUOTE&gt;matjashka wrote:&lt;BR /&gt;If I understood your question correctly, the simple answer is yes.&lt;BR /&gt;
&lt;BR /&gt;
You may have to define your text width first
&lt;PRE&gt;actualWidth=(your_dimension)*1000&lt;/PRE&gt;
You first create a TEXTBLOCK which has width as one of parameters, and then use RICHTEXT2 do display its contents.
&lt;PRE&gt;TEXTBLOCK block_name, actualWidth, anchor, angle, width factor, charspace factor, fixed height, "Hello!"
richtext2 0, 0, block_name&lt;/PRE&gt;
Then you use a REQUEST command to acquire the width and height of the above.
&lt;PRE&gt;your_dimensions = REQUEST("TEXTBLOCK_INFO", block_name, width, height)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
Thanks for the reply! I got it working. Is there a way to set the minimum height?</description>
      <pubDate>Fri, 23 Jun 2017 12:39:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292621#M5732</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-06-23T12:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Wrap text within an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292622#M5733</link>
      <description>Hi and you're welcome.&lt;BR /&gt;
&lt;BR /&gt;
If you want to limit values during user input, in the Parameter script you usually do
&lt;PRE&gt;values "myParam" range[min,]&lt;/PRE&gt;
When dealing with variables you probably want to create some type of a condition like this
&lt;PRE&gt;min=10
IF myValue&amp;lt;min THEN myValue = min&lt;/PRE&gt;
Of course you can hard code the min or make it a user-accessible parameter.</description>
      <pubDate>Fri, 23 Jun 2017 15:18:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Wrap-text-within-an-object/m-p/292622#M5733</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2017-06-23T15:18:23Z</dc:date>
    </item>
  </channel>
</rss>

