<?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: GDL text that will always be upright or readable! in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215017#M11516</link>
    <description>&lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs/" target="_blank"&gt;gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs/&lt;/A&gt;</description>
    <pubDate>Sat, 03 Sep 2016 04:50:11 GMT</pubDate>
    <dc:creator>Hmooslechner</dc:creator>
    <dc:date>2016-09-03T04:50:11Z</dc:date>
    <item>
      <title>GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215007#M11506</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Im fairly new to GDL and after a bit of help. Ive managed to make some parametric objects with 2d and 3d scripting. One problem i have it that i can't work out how to get my text to auto-rotate so that it is always readable or upright. The text is the right way when i place the object, but as soon as its rotated 180 degrees the text is the upside down. Having objects with upside-down texts drives me crazy.&lt;BR /&gt;
&lt;BR /&gt;
Any help would be great!&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:17:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215007#M11506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T08:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215008#M11507</link>
      <description>Jay&lt;BR /&gt;
&lt;BR /&gt;
What you need is a rot2 for your text inverse to the symb_rotangle (the angle the object is placed on)&lt;BR /&gt;
You will also need to check if the symbol is mirrored (symb_mirored)  and revers the rotation of symb_rotangle again.</description>
      <pubDate>Thu, 16 Oct 2014 08:29:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215008#M11507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T08:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215009#M11508</link>
      <description>Kristian, thanks for replying. I was able to use the symb_rotangle to get the text rotating, but like you mentioned mirroring it becomes a problem where if the symbol gets mirrored the text needs to be rotated back. How exactly do i use the symb_mirored request?&lt;BR /&gt;
&lt;BR /&gt;
I am still quite a noob to the world of gdl</description>
      <pubDate>Thu, 16 Oct 2014 13:56:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215009#M11508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T13:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215010#M11509</link>
      <description>In this post you will find some examples for the use of the ROT2 command in GDL, which :&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://blog.cadimage.com/2013/09/gdl-basics-5-using-global-variables/" target="_blank"&gt;&lt;LINK_TEXT text="http://blog.cadimage.com/2013/09/gdl-ba ... variables/"&gt;http://blog.cadimage.com/2013/09/gdl-basics-5-using-global-variables/&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Thu, 16 Oct 2014 17:50:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215010#M11509</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2014-10-16T17:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215011#M11510</link>
      <description>Hi.&lt;BR /&gt;
Check if this works for you:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!===CORRECT TEXT ORIENTATION=====

MUL2 1 - 2 * SYMB_MIRRORED, 1
ROT2 -SYMB_ROTANGLE * (SYMB_ROTANGLE &amp;lt;&amp;gt; 0)

...........................
...........................
(the code part that generates and places your text)
...........................
...........................

DEL 2
&lt;/PRE&gt;

Best regards.</description>
      <pubDate>Thu, 16 Oct 2014 20:53:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215011#M11510</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-10-16T20:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215012#M11511</link>
      <description>With the ability to alter the orientation of the plan view we then have the next level of this problem. We model our buildings with the global origin matching the surveyor and then rotate the plan view to display different parts of the building relative to the printed plan. &lt;BR /&gt;
&lt;BR /&gt;
How do you get an object to respond to the plan orientation?</description>
      <pubDate>Wed, 17 Jun 2015 06:41:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215012#M11511</guid>
      <dc:creator>Matthew Johnson</dc:creator>
      <dc:date>2015-06-17T06:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215013#M11512</link>
      <description>I think this is what you are looking for:&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;&lt;PRE&gt;nnn = REQUEST ("view_rotangle", "", angleViewRotation)&lt;/PRE&gt;

Returns the rotation angle of the current view.&lt;/BLOCKQUOTE&gt;

The above code will load the rotation angle value of the current viewpoint into the  &lt;FONT color="#0000FF"&gt;angleViewRotation &lt;/FONT&gt;variable.&lt;BR /&gt;
The &lt;FONT color="#0000FF"&gt;nnn &lt;/FONT&gt;variable will contain the value of 1 if the request was successful.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://helpcenter.graphisoft.com/guides/gdl-guide-for-archicad-18/chapter-12-miscellaneous/request-options/" target="_blank"&gt;&lt;LINK_TEXT text="http://helpcenter.graphisoft.com/guides ... t-options/"&gt;http://helpcenter.graphisoft.com/guides/gdl-guide-for-archicad-18/chapter-12-miscellaneous/request-options/&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:37:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215013#M11512</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2015-06-17T12:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215014#M11513</link>
      <description>Laszlo, &lt;BR /&gt;
&lt;BR /&gt;
Thanks for that. Works a treat.</description>
      <pubDate>Wed, 17 Jun 2015 23:47:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215014#M11513</guid>
      <dc:creator>Matthew Johnson</dc:creator>
      <dc:date>2015-06-17T23:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215015#M11514</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Hope someone finds this useful, has worked for old objects too...(I think this was found from some GS object years ago).&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;gdlversion= req("GDL_version")
if gdlversion&amp;gt;1.600 then!--AC13+
	success = request("view_rotangle", "", angleViewRotation)
	SYMB_ROTANGLE = SYMB_ROTANGLE + angleViewRotation
endif
SYMB_ROTANGLE = SYMB_ROTANGLE -((SYMB_ROTANGLE &amp;gt; 360)*360)
textangle= 180*((SYMB_ROTANGLE&amp;gt;90.0001)&amp;amp;(SYMB_ROTANGLE&amp;lt;270.0001))
&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jun 2015 22:36:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215015#M11514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-25T22:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215016#M11515</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am pretty much new to GDL codes. I am very visual person than reading the reference guide. It is difficult to understand because i am very fluent with English. &lt;BR /&gt;
&lt;BR /&gt;
I am trying to create text to be readable in any direction. But for some reason, it didn't do the job. It only read one direction but not other rotation direction. &lt;BR /&gt;
&lt;BR /&gt;
Can you tell me what I do wrong the code? I included the attachment for you to see it.&lt;BR /&gt;
&lt;BR /&gt;
I create 3D for GDL objects with no problem but not the 2D drawings that is where I am struggling the most. I am hoping that you can tell me what I did do wrong.  Big thanks!!&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/9642i9144156D8C7AE863/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screen Shot 2016-09-02 at 1.45.30 PM.png" title="Screen Shot 2016-09-02 at 1.45.30 PM.png" /&gt;</description>
      <pubDate>Fri, 02 Sep 2016 18:50:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215016#M11515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-02T18:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: GDL text that will always be upright or readable!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215017#M11516</link>
      <description>&lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs/" target="_blank"&gt;gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs/&lt;/A&gt;</description>
      <pubDate>Sat, 03 Sep 2016 04:50:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-text-that-will-always-be-upright-or-readable/m-p/215017#M11516</guid>
      <dc:creator>Hmooslechner</dc:creator>
      <dc:date>2016-09-03T04:50:11Z</dc:date>
    </item>
  </channel>
</rss>

