<?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: Orientation GDL object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275969#M6383</link>
    <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
You can use REQUEST ("view_rotangle", "", angleViewRotation).&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
    <pubDate>Wed, 12 Apr 2017 17:00:03 GMT</pubDate>
    <dc:creator>sinceV6</dc:creator>
    <dc:date>2017-04-12T17:00:03Z</dc:date>
    <item>
      <title>Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275963#M6377</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is it possible to change custom 2d objects (GDL) to face upwards when I change orientation of the model view to 180 degree?&lt;BR /&gt;
&lt;BR /&gt;
I use Archicad 20.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 08 Apr 2017 21:18:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275963#M6377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-08T21:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275964#M6378</link>
      <description>Can you show a screen shot of what you mean?&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 10 Apr 2017 01:21:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275964#M6378</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-04-10T01:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275965#M6379</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;Can you show a screen shot of what you mean? &lt;BR /&gt;
 &lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
I draw evacuation plans. So I need to rotate the whole screen 180 degrees to be able to show the symbol "Here you are" correct and therefore I changes the axis of the view. It want the 2D symbols to be rotated so that they are always displayed correctly even when the display is turned 180 degrees. &lt;BR /&gt;
 &lt;BR /&gt;
I've tried to read the GDL Reference Guide and insert som sort of 2d script but I can't figure it out.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/8348i09DDCE2D29B6509C/image-size/large?v=v2&amp;amp;px=999" border="0" alt="ryark-2d-script-2.jpg" title="ryark-2d-script-2.jpg" /&gt;</description>
      <pubDate>Mon, 10 Apr 2017 08:04:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275965#M6379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-10T08:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275966#M6380</link>
      <description>If you are just rotating the object then you can check &lt;FONT color="#ff0000"&gt;symb_rotangle&lt;/FONT&gt; to get the angle of rotation.&lt;BR /&gt;
&lt;BR /&gt;
But you are rotating the entire plan so effectively the object is not rotating at all.&lt;BR /&gt;
&lt;BR /&gt;
Off the top of my head I can't think of a way to determine (in GDL) the rotation angle of the plan.&lt;BR /&gt;
It might be there somewhere so if anyone knows please say so.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 10 Apr 2017 08:55:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275966#M6380</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-04-10T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275967#M6381</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;If you are just rotating the object then you can check &lt;FONT color="#ff0000"&gt;symb_rotangle&lt;/FONT&gt; to get the angle of rotation. &lt;BR /&gt;
 &lt;BR /&gt;
But you are rotating the entire plan so effectively the object is not rotating at all. &lt;BR /&gt;
 &lt;BR /&gt;
Off the top of my head I can't think of a way to determine (in GDL) the rotation angle of the plan. &lt;BR /&gt;
It might be there somewhere so if anyone knows please say so. &lt;BR /&gt;
 &lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
I want the symbols to always face upwards - even when a set direction to another angle.  &lt;BR /&gt;
 &lt;BR /&gt;
Right now my work flow look like this. I make one plan/view for each evacuation plan and set out all the symbols for this view. Then a create another view, copy all symbols, rotate the plan, and also rotate the symbols. I want to avoid this moment and use same symbols in all drawings.  &lt;BR /&gt;
 &lt;BR /&gt;
The symbol "North Arrow" do always face towards the north point. I want my 2D symbol to act like the north arrow and always face upwards. Text can be set to always display horisontal, even if you change the view och rotating the object.</description>
      <pubDate>Mon, 10 Apr 2017 10:54:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275967#M6381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-10T10:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275968#M6382</link>
      <description>If you are selecting the objects in plan and rotating them then symb_rotangle will allow you to 'undo' the rotation.&lt;BR /&gt;
&lt;BR /&gt;
i.e. ROT2 -symb_rotangle &lt;BR /&gt;
&lt;BR /&gt;
This will undo the rotation of an object no matter what rotation angle you set for it..&lt;BR /&gt;
&lt;BR /&gt;
GLOB_NORTH_DIR is used if you want to use the north direction.&lt;BR /&gt;
&lt;BR /&gt;
However if you are using the orientation to rotate the entire plan view then all objects will rotate as well - even the north point because you will be rotating the north direction with the plan.&lt;BR /&gt;
&lt;BR /&gt;
Plain text has an option to always be readable no matter how it is rotated.&lt;BR /&gt;
But I don't think it is possible for objects to automatically un-rotate if you use the page orientation to rotate the entire view.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 11 Apr 2017 01:40:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275968#M6382</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-04-11T01:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275969#M6383</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
You can use REQUEST ("view_rotangle", "", angleViewRotation).&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Wed, 12 Apr 2017 17:00:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275969#M6383</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2017-04-12T17:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275970#M6384</link>
      <description>&lt;BLOCKQUOTE&gt;sinceV6 wrote:&lt;BR /&gt;Hi.&lt;BR /&gt;
&lt;BR /&gt;
You can use REQUEST ("view_rotangle", "", angleViewRotation).&lt;BR /&gt;
&lt;BR /&gt;
Best regards.&lt;/BLOCKQUOTE&gt;

Yep, that is your solution.&lt;BR /&gt;

&lt;PRE&gt;zzz=REQUEST ("view_rotangle", "", angleViewRotation)
ROT2 -angleViewRotation&lt;/PRE&gt;

Thanks sinceV6&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 13 Apr 2017 00:35:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275970#M6384</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-04-13T00:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275971#M6385</link>
      <description>Is there a way to keep the object horizontal, like text? I tried that piece of code but it didn't work. My scenario is in an apartment building. There are multiple unit type and each unit is a module. When the modules are placed the building shell file they get rotated and mirrored but I want the room labels to stay 'readable.' I don't want them upside down or sideways, and I don't want them to mirror, either.&lt;BR /&gt;
&lt;BR /&gt;
The room tags are a custom object, by the way.</description>
      <pubDate>Wed, 28 Feb 2018 05:54:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275971#M6385</guid>
      <dc:creator>genarch</dc:creator>
      <dc:date>2018-02-28T05:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Orientation GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275972#M6386</link>
      <description>I am not quite sure how your objects will behave when used in rotated and mirrored modules.&lt;BR /&gt;
But a little trick I do is to add some text commands in the 2D script so you can see what is happening to your objects.&lt;BR /&gt;
This will let you know what you need to do to un-rotate or un-mirror the text (or entire object).&lt;BR /&gt;

&lt;PRE&gt;TEXT2 0,0,SYMB_ROTANGLE      !!undo with ROT2 -SYMB_ROTANGLE
TEXT2 0,0,SYMB_MIRRORED      !!undo with MUL2 -1,1

zzz=REQUEST ("view_rotangle", "", angleViewRotation)
TEXT2 0,0,angleViewRotation      !!undo with ROT2 -angleViewRotation&lt;/PRE&gt;

If you use all 3 at once you will need to adjust the x/y co-ordinates so all the text is not on top of each other.&lt;BR /&gt;
I sometimes change the pen colour in between so I know which piece of text is which colour.&lt;BR /&gt;
Comment out or delete these when you figure out what is happening.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 28 Feb 2018 06:12:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Orientation-GDL-object/m-p/275972#M6386</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-02-28T06:12:20Z</dc:date>
    </item>
  </channel>
</rss>

