<?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: Stretchy text boxes... in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109553#M36183</link>
    <description>I guess it's more a Problem of the settings of the DWG filter.</description>
    <pubDate>Wed, 18 Jan 2006 07:58:46 GMT</pubDate>
    <dc:creator>Frank Beister</dc:creator>
    <dc:date>2006-01-18T07:58:46Z</dc:date>
    <item>
      <title>Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109548#M36178</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi guys.... I'm having a confusing time with some GDL.... &lt;BR /&gt;
&lt;BR /&gt;
If I just get some 2D text and create an object it exports to a DWG just fine.... but if I make the box stretchy it looks fine in AC and PM but the moment I export to DWG, the result looks like pooh...&lt;BR /&gt;
&lt;BR /&gt;
Here is the script I use for my stretchy text box...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DEFINE STYLE{2}    "AC_STYLE_1" "Stylus BT",          0.2,      0&lt;BR /&gt;
&lt;BR /&gt;
PARAGRAPH		"AC_PRG_1"      1,            0,            0,            0,            1&lt;BR /&gt;
    PEN          3&lt;BR /&gt;
    SET STYLE "AC_STYLE_1"&lt;BR /&gt;
 &lt;BR /&gt;
       "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG, THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.."&lt;BR /&gt;
&lt;BR /&gt;
ENDPARAGRAPH&lt;BR /&gt;
TEXTBLOCK		"AC_TEXTBLOCK_1" a,      7,            0,            1,            1,            0, &lt;BR /&gt;
        "AC_PRG_1"&lt;BR /&gt;
RICHTEXT2		           0,            0, "AC_TEXTBLOCK_1"&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Jan 2006 04:00:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109548#M36178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-16T04:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109549#M36179</link>
      <description>bump...</description>
      <pubDate>Mon, 16 Jan 2006 21:48:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109549#M36179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-16T21:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109550#M36180</link>
      <description>&lt;BLOCKQUOTE&gt;Nefarious wrote:&lt;BR /&gt;bump...&lt;/BLOCKQUOTE&gt;

huh?</description>
      <pubDate>Mon, 16 Jan 2006 21:56:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109550#M36180</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2006-01-16T21:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109551#M36181</link>
      <description>&lt;BLOCKQUOTE&gt;TomWaltz wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Nefarious wrote:&lt;BR /&gt;bump...&lt;/BLOCKQUOTE&gt;

huh?&lt;/BLOCKQUOTE&gt;

Any ideas tom?</description>
      <pubDate>Mon, 16 Jan 2006 22:44:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109551#M36181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-16T22:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109552#M36182</link>
      <description>Someone must have an idea...&lt;BR /&gt;
&lt;BR /&gt;
Currently I cannot print my documents... please help</description>
      <pubDate>Wed, 18 Jan 2006 07:02:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109552#M36182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-18T07:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109553#M36183</link>
      <description>I guess it's more a Problem of the settings of the DWG filter.</description>
      <pubDate>Wed, 18 Jan 2006 07:58:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109553#M36183</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-01-18T07:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109554#M36184</link>
      <description>&lt;BLOCKQUOTE&gt;Nefarious wrote:&lt;BR /&gt;Someone must have an idea...&lt;BR /&gt;
&lt;BR /&gt;
Currently I cannot print my documents... please help&lt;/BLOCKQUOTE&gt;

Without knowing what the problem actually is other than "it looks bad", we cannot say. Maybe a screenshot would help.&lt;BR /&gt;
&lt;BR /&gt;
How does this conversion affect you being able to print? Are you printing Archicad drawings in AutoCAD for some reason?&lt;BR /&gt;
&lt;BR /&gt;
Sometimes we need a little more info to be able to answer something.</description>
      <pubDate>Wed, 18 Jan 2006 14:57:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109554#M36184</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2006-01-18T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109555#M36185</link>
      <description>&lt;BLOCKQUOTE&gt;TomWaltz wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Nefarious wrote:&lt;BR /&gt;Someone must have an idea...&lt;BR /&gt;
&lt;BR /&gt;
Currently I cannot print my documents... please help&lt;/BLOCKQUOTE&gt;

Without knowing what the problem actually is other than "it looks bad", we cannot say. Maybe a screenshot would help.&lt;BR /&gt;
&lt;BR /&gt;
How does this conversion affect you being able to print? Are you printing Archicad drawings in AutoCAD for some reason?&lt;BR /&gt;
&lt;BR /&gt;
Sometimes we need a little more info to be able to answer something.&lt;/BLOCKQUOTE&gt;

When I say it looks bad.... The formatting of the text in the box is completely different, the width seems to be affected, the boxes become less wide and much taller... so the documentation ends up overlapping the plan in weird areas etc...&lt;BR /&gt;
&lt;BR /&gt;
When I say "I cannot print" I guess I was overstating... I should have said I cannot export to DWG correctly... &lt;BR /&gt;
&lt;BR /&gt;
I have tried every relevant switch and toggle in the translator but have not found anything that affects these text boxes...</description>
      <pubDate>Wed, 18 Jan 2006 22:00:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109555#M36185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-18T22:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109556#M36186</link>
      <description>&lt;BLOCKQUOTE&gt;Nefarious wrote:&lt;BR /&gt;When I say it looks bad.... The formatting of the text in the box is completely different, the width seems to be affected, the boxes become less wide and much taller... so the documentation ends up overlapping the plan in weird areas etc...&lt;BR /&gt;
&lt;BR /&gt;
When I say "I cannot print" I guess I was overstating... I should have said I cannot export to DWG correctly... &lt;BR /&gt;
&lt;BR /&gt;
I have tried every relevant switch and toggle in the translator but have not found anything that affects these text boxes...&lt;/BLOCKQUOTE&gt;

My suspicion is that there is something in the stretched text box that either the translator or AutoCAD cannot process correctly and is making a narrower text box than you expect.&lt;BR /&gt;
&lt;BR /&gt;
I've avoided the RICHTEXT stuff inside GDL like the plague, so I really cannot say for sure.</description>
      <pubDate>Wed, 18 Jan 2006 22:21:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109556#M36186</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2006-01-18T22:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109557#M36187</link>
      <description>How would I go about making the same object without using rich text?</description>
      <pubDate>Wed, 18 Jan 2006 22:57:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109557#M36187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-18T22:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109558#M36188</link>
      <description>I would isolate the RICHTEXT passage into a new object. Place this in a plain plan. Start from the scratch new or reduce the richtext specialities of your code an export to DWG after each change to see, what does not work. There are a lot of possibilities to stretch and transform the text to fit it in your box.  would be astonished, if this could be exported to DWG.&lt;BR /&gt;
Try first some most common fonts and sizes. And please post, what makes the trouble. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
If you don't want to use RICHTEXT2, you will need to do it with (lots of) TEXT2. Thats very hard, because you can't mix styles inside a text or get automatical wraped text.</description>
      <pubDate>Wed, 18 Jan 2006 23:21:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109558#M36188</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-01-18T23:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109559#M36189</link>
      <description>Ive spent about 5 hours trying to make a stretchy text box using TEXT2 but simply cannot do it ...&lt;BR /&gt;
&lt;BR /&gt;
 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Are there any GS staff here that can shed some light on this situation?</description>
      <pubDate>Sun, 22 Jan 2006 22:35:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109559#M36189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-22T22:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy text boxes...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109560#M36190</link>
      <description>&lt;BLOCKQUOTE&gt;Nefarious wrote:&lt;BR /&gt;Ive spent about 5 hours trying to make a stretchy text box using TEXT2 but simply cannot do it ...&lt;BR /&gt;
&lt;BR /&gt;
 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Are there any GS staff here that can shed some light on this situation?&lt;/BLOCKQUOTE&gt;

I'm not familiar with richtext as I still use V81.&lt;BR /&gt;
&lt;BR /&gt;
The stretchy box shouldn't be a problem but stretchy text is.&lt;BR /&gt;
You will need the object to read through your text breaking it down into individual words using "STRSTR" to find the position of the spaces.&lt;BR /&gt;
"SUBSTR" can be used to isolate just that word and "STW" used to find the length of that word.&lt;BR /&gt;
This can then be cummulative for each subsequent word then when the length exceeds that of your stretchy box you have your first line of text.&lt;BR /&gt;
I haven't actually tried this - just thoughts off the top of my head - but it's a starting point.&lt;BR /&gt;
&lt;BR /&gt;
I've seen this done by counting the number of characters in text and having a max number of characters per line rather than the length but I guess it could be possible.&lt;BR /&gt;
In fact there is a string wrapping routine for this in DNC's GDL Cookbook.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 23 Jan 2006 07:05:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-text-boxes/m-p/109560#M36190</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2006-01-23T07:05:37Z</dc:date>
    </item>
  </channel>
</rss>

