<?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: how to get rotation of placed window in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251885#M2121</link>
    <description>WALL_DIRECTION is the global variable I meant.&lt;BR /&gt;
&lt;BR /&gt;
I like to add some text to my 2D script to show all the various variables so I can place windows in various rotations, mirrored, flipped, different wall angles and rotate the plan window and see what the values are in each instance.&lt;BR /&gt;
&lt;BR /&gt;
Space the text out and use different pen colours so you know what each one is - or you could add extra text for a description (but I am lazy).&lt;BR /&gt;
You can leave it all in the script and just comment it out so it is there if you ever need to check it in the future.&lt;BR /&gt;
&lt;BR /&gt;
i.e.
&lt;PRE&gt;PEN 1
text2 0,0, WALL_DIRECTION
PEN 2
text2 0,0.5, SYMB_ROTANGLE
PEN 3
text2 0,1, SYMB_MIRRORED
PEN 4
text2 0,1.5, _angleViewRot&lt;/PRE&gt;

Barry.</description>
    <pubDate>Tue, 03 Sep 2019 09:21:21 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2019-09-03T09:21:21Z</dc:date>
    <item>
      <title>how to get rotation of placed window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251883#M2119</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hello, &lt;BR /&gt;
&lt;BR /&gt;
I'm trying to add some horizontally aligned text to the 2d symbol of a window, and have run into some trouble.&lt;BR /&gt;
&lt;BR /&gt;
I tried to follow the instructions I found here:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://gdl.graphisoft.com/tips-and-tric ... le-text-cs&amp;quot;&amp;gt;http://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/tips-and-tric ... le-text-cs"&gt;&lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs" target="_blank"&gt;http://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs&lt;/A&gt;&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
and here:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?t=47251" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?t=47251" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;viewtopic.php?t=47251&amp;quot;&amp;gt;https://archicad-talk.graphisoft.com/viewtopic.php?t=47251&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="viewtopic.php?t=47251"&gt;&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?t=47251" target="_blank"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?t=47251&lt;/A&gt;&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
My code now looks something like this:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;r = request ("View_Rotangle", "", _angleViewRot)
rot2 ((symb_rotangle + _angleViewRot) MOD 360) * (symb_mirrored - not(symb_mirrored))
text2 0, 0 , myText
del 1
&lt;/PRE&gt;

however, the variable symb_rotangle is always either 0 or 180, and the variable _angleViewRot is always 0. Did I do something wrong, or is there some other way to do this?&lt;BR /&gt;
&lt;BR /&gt;
I also found this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/reference-guide/doors-and-windows" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://gdl.graphisoft.com/reference-guide/doors-and-windows" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://gdl.graphisoft.com/reference-gui ... nd-windows&amp;quot;&amp;gt;http://gdl.graphisoft.com/reference-guide/doors-and-windows&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/reference-gui ... nd-windows"&gt;&lt;A href="http://gdl.graphisoft.com/reference-guide/doors-and-windows" target="_blank"&gt;http://gdl.graphisoft.com/reference-guide/doors-and-windows&lt;/A&gt;&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
which seems to imply that symb_rotangle can only be 0 or 180, is this correct?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
blob&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:26:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251883#M2119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T10:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to get rotation of placed window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251884#M2120</link>
      <description>I don’t have ArchiCAD with me at the moment.&lt;BR /&gt;
The symb_rotang will always be 0 or 180 as the window belongs to the wall and can only be placed in one of two rotations.&lt;BR /&gt;
&lt;BR /&gt;
Angle view rot is of no real value - I think that is the rotation of the plan window.&lt;BR /&gt;
&lt;BR /&gt;
However there is a wall angle that you will need to use.&lt;BR /&gt;
I think it is wall_angle that you are after - you will find it in the gdl reference guide.&lt;BR /&gt;
&lt;BR /&gt;
There is also a global variable for symb_mirrored and another for the reveal side (can’t remember the actual variable without the manual).&lt;BR /&gt;
These may also be important to determine what is happening to your window when you place it in a wall.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 02 Sep 2019 13:33:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251884#M2120</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-02T13:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to get rotation of placed window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251885#M2121</link>
      <description>WALL_DIRECTION is the global variable I meant.&lt;BR /&gt;
&lt;BR /&gt;
I like to add some text to my 2D script to show all the various variables so I can place windows in various rotations, mirrored, flipped, different wall angles and rotate the plan window and see what the values are in each instance.&lt;BR /&gt;
&lt;BR /&gt;
Space the text out and use different pen colours so you know what each one is - or you could add extra text for a description (but I am lazy).&lt;BR /&gt;
You can leave it all in the script and just comment it out so it is there if you ever need to check it in the future.&lt;BR /&gt;
&lt;BR /&gt;
i.e.
&lt;PRE&gt;PEN 1
text2 0,0, WALL_DIRECTION
PEN 2
text2 0,0.5, SYMB_ROTANGLE
PEN 3
text2 0,1, SYMB_MIRRORED
PEN 4
text2 0,1.5, _angleViewRot&lt;/PRE&gt;

Barry.</description>
      <pubDate>Tue, 03 Sep 2019 09:21:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251885#M2121</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-03T09:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to get rotation of placed window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251886#M2122</link>
      <description>Hi Barry,&lt;BR /&gt;
&lt;BR /&gt;
This was exactly what I was looking for, thank you!</description>
      <pubDate>Tue, 03 Sep 2019 10:12:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-get-rotation-of-placed-window/m-p/251886#M2122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-03T10:12:13Z</dc:date>
    </item>
  </channel>
</rss>

