<?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: exporting text to autocad, with line breaks preserved in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148480#M22741</link>
    <description>Yes, this is what I meant.&lt;BR /&gt;
You could also explicitly define line breaks in your input text by putting \n into it, which is the GDL code for line break.&lt;BR /&gt;
Let us see if that works.</description>
    <pubDate>Tue, 01 Dec 2009 15:50:20 GMT</pubDate>
    <dc:creator>Laszlo Nagy</dc:creator>
    <dc:date>2009-12-01T15:50:20Z</dc:date>
    <item>
      <title>exporting text to autocad, with line breaks preserved</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148477#M22738</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I have a room label which, when exporting to autocad, doesn't preserve its line breaks. a 4-line text block at 1:50, for example, appears in autocad as a single line. Is this a typical problem? normal multiline text blocks seem to export just fine &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
see the object attached - any help you guys could provide would be greatly appreciated!&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Nov 2009 20:44:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148477#M22738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T20:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: exporting text to autocad, with line breaks preserved</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148478#M22739</link>
      <description>As far as I can see there are no line breaks in you object. There reason it is written is several lines is because the width of the Text Block is less than the width of the Text written into it so it is placed into several lines.&lt;BR /&gt;
Why don't you  use several RICHTEXT2 commands?&lt;BR /&gt;
You can use String commands to break down the input text string into 3-4 lines and display each with a RICHTEXT2 command.</description>
      <pubDate>Tue, 01 Dec 2009 15:09:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148478#M22739</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-12-01T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: exporting text to autocad, with line breaks preserved</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148479#M22740</link>
      <description>&lt;BLOCKQUOTE&gt;laszlonagy wrote:&lt;BR /&gt;As far as I can see there are no line breaks in you object. There reason it is written is several lines is because the width of the Text Block is less than the width of the Text written into it so it is placed into several lines.&lt;BR /&gt;
Why don't you  use several RICHTEXT2 commands?&lt;BR /&gt;
You can use String commands to break down the input text string into 3-4 lines and display each with a RICHTEXT2 command.&lt;/BLOCKQUOTE&gt;

if I understand correctly, would this mean creating a set of input fields rather than having just one? IE I create my own line breaks by inserting the text on different lines? I was trying to stay away from that - hoping that I could have the block output the text just as AC outputs a regular block of text (where the width defines the line breaks). Please let me know if I've misinterpreted</description>
      <pubDate>Tue, 01 Dec 2009 15:39:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148479#M22740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-01T15:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: exporting text to autocad, with line breaks preserved</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148480#M22741</link>
      <description>Yes, this is what I meant.&lt;BR /&gt;
You could also explicitly define line breaks in your input text by putting \n into it, which is the GDL code for line break.&lt;BR /&gt;
Let us see if that works.</description>
      <pubDate>Tue, 01 Dec 2009 15:50:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148480#M22741</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-12-01T15:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: exporting text to autocad, with line breaks preserved</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148481#M22742</link>
      <description>&lt;BLOCKQUOTE&gt;laszlonagy wrote:&lt;BR /&gt;Yes, this is what I meant.&lt;BR /&gt;
You could also explicitly define line breaks in your input text by putting \n into it, which is the GDL code for line break.&lt;BR /&gt;
Let us see if that works.&lt;/BLOCKQUOTE&gt;

I had tried that fist actually, but when exporting to autocad format it shows up - certainly not ideal! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I guess the other problem with multi lines is that i have to define their distance above the oval in a way that scales with the drawing scale... seems like it's going to be very complicated &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
is it a translator issue? is it possible to have the block exploded so that the richtext box shows up just as a text box, instead of being paired with the oval? The intent is mainly to have the line breaks in the right place so that consultant can use them for backgrounds</description>
      <pubDate>Tue, 01 Dec 2009 15:54:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148481#M22742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-01T15:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: exporting text to autocad, with line breaks preserved</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148482#M22743</link>
      <description>Yes, you have to take care of the scaling issue if that is something that is a factor during Translation.&lt;BR /&gt;
I don't think the Text Block can be broken up because it is one element in ArchiCAD so it is converted to one element in AutoCAD.&lt;BR /&gt;
You have to write the GDL in a way that produces your desired result.&lt;BR /&gt;
&lt;BR /&gt;
As I said. what I would do is use one parameter for the text, then use string commands to break it up into several lines of text, then generate those as separate Text Blocks.</description>
      <pubDate>Mon, 07 Dec 2009 15:04:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148482#M22743</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-12-07T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: exporting text to autocad, with line breaks preserved</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148483#M22744</link>
      <description>&lt;BLOCKQUOTE&gt;laszlonagy wrote:&lt;BR /&gt;Yes, you have to take care of the scaling issue if that is something that is a factor during Translation.&lt;BR /&gt;
I don't think the Text Block can be broken up because it is one element in ArchiCAD so it is converted to one element in AutoCAD.&lt;BR /&gt;
You have to write the GDL in a way that produces your desired result.&lt;BR /&gt;
&lt;BR /&gt;
As I said. what I would do is use one parameter for the text, then use string commands to break it up into several lines of text, then generate those as separate Text Blocks.&lt;/BLOCKQUOTE&gt;

and just for clarification (since I'm very new to GDL), when you say to use string commands to break up the text, you mean that I need a separate input line for each line of text, in the object settings? is it a quick enough exercise that you could show me an example of what you mean?</description>
      <pubDate>Mon, 07 Dec 2009 15:13:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148483#M22744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-07T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: exporting text to autocad, with line breaks preserved</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148484#M22745</link>
      <description>There would be two ways:&lt;BR /&gt;
1. Each line of text comes from a different parameter. Maybe this is what you should do because it is the simplest.&lt;BR /&gt;
2. The whole Text Block comes from one parameter. In this case you would have to have a value of how wide each individual line of text should be and you would have to break up the text coming from the parameter using various string commands. These can be found at page 240 of the GDL Reference Guide (in AC13). So maybe you would have to first calculate how many lines the text would fit depending on the length of the text coming from the parameter. Then you would have to split this into several text parameter and then place these line by line using the TEXT2 command.&lt;BR /&gt;
&lt;BR /&gt;
Considering all of the above, I would recommend you option 1.&lt;BR /&gt;
I have no time to give you the code because it is not that simple, sorry.</description>
      <pubDate>Mon, 07 Dec 2009 19:13:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/exporting-text-to-autocad-with-line-breaks-preserved/m-p/148484#M22745</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-12-07T19:13:07Z</dc:date>
    </item>
  </channel>
</rss>

