<?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 Doors in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Doors/m-p/185843#M5311</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Here are some of my questions:
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Is there a way to get where the sun symbol and the swing (arrow symbol) is? &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;(See image.)&lt;BR /&gt;&lt;BR /&gt;When creating a door, the sun icon represents the safe side of the door and arrow represents which way the door will swing. I found values &lt;FONT color="#808080"&gt;reflected&lt;/FONT&gt; and &lt;FONT color="#808080"&gt;oSide&lt;/FONT&gt; and thought that these are the values that will tell me where was the sun and arrow located.&lt;BR /&gt;&lt;BR /&gt;I am looking for these values so that I can determine the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;handing of the door; i.e., right hand (RH), left hand (LH), right hand reverse (RHR), and left hand reverse (LHR).&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Is there a way to get the zone where the door swings? &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;(See image.)&lt;BR /&gt;&lt;BR /&gt;As seen from the image, the door (and wall) is located at the dark green zone while it is swinging on the light green zone. I am trying to get the light green zone in this case.&lt;BR /&gt;&lt;BR /&gt;I also, found that there is a parameter called &lt;FONT color="#808080"&gt;gs_bOpeningToZone&lt;/FONT&gt; that will get this lt green zone in the scheme (schedule). But how?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/72632iD7E042E6419D00F0/image-size/large?v=v2&amp;amp;px=999" border="0" alt="door_sun.png" title="door_sun.png" /&gt;</description>
    <pubDate>Tue, 01 Aug 2023 12:28:15 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2023-08-01T12:28:15Z</dc:date>
    <item>
      <title>Doors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Doors/m-p/185843#M5311</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Here are some of my questions:
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Is there a way to get where the sun symbol and the swing (arrow symbol) is? &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;(See image.)&lt;BR /&gt;&lt;BR /&gt;When creating a door, the sun icon represents the safe side of the door and arrow represents which way the door will swing. I found values &lt;FONT color="#808080"&gt;reflected&lt;/FONT&gt; and &lt;FONT color="#808080"&gt;oSide&lt;/FONT&gt; and thought that these are the values that will tell me where was the sun and arrow located.&lt;BR /&gt;&lt;BR /&gt;I am looking for these values so that I can determine the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;handing of the door; i.e., right hand (RH), left hand (LH), right hand reverse (RHR), and left hand reverse (LHR).&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Is there a way to get the zone where the door swings? &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;(See image.)&lt;BR /&gt;&lt;BR /&gt;As seen from the image, the door (and wall) is located at the dark green zone while it is swinging on the light green zone. I am trying to get the light green zone in this case.&lt;BR /&gt;&lt;BR /&gt;I also, found that there is a parameter called &lt;FONT color="#808080"&gt;gs_bOpeningToZone&lt;/FONT&gt; that will get this lt green zone in the scheme (schedule). But how?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/72632iD7E042E6419D00F0/image-size/large?v=v2&amp;amp;px=999" border="0" alt="door_sun.png" title="door_sun.png" /&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:28:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Doors/m-p/185843#M5311</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-08-01T12:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Doors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Doors/m-p/185844#M5312</link>
      <description>On #2, I found this GDL function that will let me to get what I needed:
&lt;PRE&gt;x = REQUEST("WINDOW_DOOR_ZONE_RELEV_OF_OWNER", "", out_dir)
x = REQUEST("ZONE_RELATIONS_OF_OWNER", "",
	cat1, code1, name1, num1,
	cat2, code2, name2, num2)
IF out_dir = 1 THEN
	PARAMETERS TEST_zone = name1
ELSE IF out_dir = 2 THEN
	PARAMETERS TEST_zone = name2
ENDIF
&lt;/PRE&gt;

&lt;B&gt;EDIT:&lt;/B&gt; (2014 Jul 09)&lt;BR /&gt;
&lt;BR /&gt;
I just found out that this is wrong. It seems like &lt;FONT color="#808080"&gt;name1&lt;/FONT&gt; is the first zone that was created first and &lt;FONT color="#808080"&gt;name2&lt;/FONT&gt; is second. When I deleted the first zone and create a new one to replace it, the output is now incorrect.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;EDIT 2:&lt;/B&gt; (2014 Jul 10)&lt;BR /&gt;
&lt;BR /&gt;
For clarification:
&lt;LIST type="decimal"&gt;&lt;S&gt;&lt;UL&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt; I created wall, door, first zone (LtRm, upper) and second zone (DkRm, lower). Using the code above, I got: &lt;PRE&gt;out_dir = 1
name1 = "LtRm"
name2 = "DkRm"&lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt; I created wall, door, first zone (DkRm, lower) and second zone (LtRm, upper). Using the code above, I got: &lt;PRE&gt;out_dir = 1
name1 = "DkRm"
name2 = "LtRm"&lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt; I created wall, door, first zone (DkRm, lower) and second zone (LtRm, upper) (I made sure that the wall is between the two zones). Using the code above, I got: &lt;PRE&gt;out_dir = 1
name1 = ""
name2 = ""&lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt; I created wall, door and a zone (I made sure that the wall is inside the zone). Using the code above, I got: &lt;PRE&gt;out_dir = 1
name1 = ""
name2 = ""&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/S&gt;&lt;/LIST&gt;</description>
      <pubDate>Tue, 08 Jul 2014 05:44:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Doors/m-p/185844#M5312</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2014-07-08T05:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Doors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Doors/m-p/185845#M5313</link>
      <description>On #1: Based on &lt;A href="http://helpcenter.graphisoft.com/tips/how-to-place-doors-and-windows-in-archicad-17/" target="_blank"&gt;this&lt;/A&gt;, the sun indicates the reveal side and the outside. With this finds, I am now able to get the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;handing&lt;E&gt;&lt;/E&gt; of the door using (on GDL):
&lt;PRE&gt;IF WIDO_REVEAL_SIDE = 1 THEN
	IF WIDO_ORIENTATION = "R" THEN
		PARAMETERS handedness = "LH"
	ELSE IF WIDO_ORIENTATION = "L" THEN
		PARAMETERS handedness = "RH"
	ENDIF
ELSE IF WIDO_REVEAL_SIDE = 0 THEN
	IF WIDO_ORIENTATION = "R" THEN
		PARAMETERS handedness = "RHR"
	ELSE IF WIDO_ORIENTATION = "L" THEN
		PARAMETERS handedness = "LHR"
	ENDIF
ENDIF
&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jul 2014 06:29:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Doors/m-p/185845#M5313</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2014-07-08T06:29:23Z</dc:date>
    </item>
  </channel>
</rss>

