<?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 Get all doors on a zone. [RE-OPEN] in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202519#M5335</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I am able to get the doors on a zone using &lt;FONT color="#808080"&gt;ACAPI_Element_GetRelations(API_RoomRelation)&lt;/FONT&gt;. But what I found out is that this is applicable to doors where its face/surface touches the edge of a zone.&lt;BR /&gt;&lt;BR /&gt;I am having trouble now getting the doors where they are in the middle of two zones. &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 attached image)&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/74212i0B44429095C6EE2C/image-size/large?v=v2&amp;amp;px=999" border="0" alt="doors.jpg" title="doors.jpg" /&gt;</description>
    <pubDate>Tue, 01 Aug 2023 12:21:47 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2023-08-01T12:21:47Z</dc:date>
    <item>
      <title>Get all doors on a zone. [RE-OPEN]</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202519#M5335</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I am able to get the doors on a zone using &lt;FONT color="#808080"&gt;ACAPI_Element_GetRelations(API_RoomRelation)&lt;/FONT&gt;. But what I found out is that this is applicable to doors where its face/surface touches the edge of a zone.&lt;BR /&gt;&lt;BR /&gt;I am having trouble now getting the doors where they are in the middle of two zones. &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 attached image)&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/74212i0B44429095C6EE2C/image-size/large?v=v2&amp;amp;px=999" border="0" alt="doors.jpg" title="doors.jpg" /&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:21:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202519#M5335</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-08-01T12:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get all doors on a zone.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202520#M5336</link>
      <description>In API19 ACAPI_Element_GetRelations function is extended and you can call it for doors and windows also. &lt;BR /&gt;
Example code: 
&lt;PRE&gt;API_Element			doorElement;
API_DoorRelation	doorInfo;

//...

err = ACAPI_Element_GetRelations (doorElement.header.guid, API_ZombieElemID, &amp;amp;doorInfo);

if ((doorInfo.toRoom == myRoom1Element.header.guid &amp;amp;&amp;amp; doorInfo.fromRoom == myRoom2Element.header.guid) ||
	(doorInfo.toRoom == myRoom2Element.header.guid &amp;amp;&amp;amp; doorInfo.fromRoom == myRoom1Element.header.guid)) {
	// this door is in the middle of myRoom1Element and myRoom2Element
}&lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
If you check this for each door then you can get all doors on the zone.</description>
      <pubDate>Thu, 21 Aug 2014 12:21:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202520#M5336</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2014-08-21T12:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get all doors on a zone.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202521#M5337</link>
      <description>Thanks Tibor. I forgot to tell that I am currently working on AC17 but I will take note on this when I start the conversions.</description>
      <pubDate>Wed, 27 Aug 2014 05:36:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202521#M5337</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2014-08-27T05:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get all doors on a zone.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202522#M5338</link>
      <description>I started converting my add-on to 18 and found out that the said &lt;FONT color="#808080"&gt;API_DoorRelation&lt;/FONT&gt; structure does not exist.</description>
      <pubDate>Fri, 05 Sep 2014 02:18:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202522#M5338</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2014-09-05T02:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get all doors on a zone.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202523#M5339</link>
      <description>&lt;BLOCKQUOTE&gt;ReignBough wrote:&lt;BR /&gt;I started converting my add-on to 18 and found out that the said &lt;FONT color="#808080"&gt;API_DoorRelation&lt;/FONT&gt; structure does not exist.&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
I'm really sorry! It's my fault, unfortunately this new feature with this structure was implemented only in API19. So you have to wait for it few more month. &lt;BR /&gt;
 &lt;BR /&gt;
I updated my previous post.</description>
      <pubDate>Fri, 05 Dec 2014 10:27:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202523#M5339</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2014-12-05T10:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get all doors on a zone. [RE-OPEN]</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202524#M5340</link>
      <description>I am able to get the doors on a zone using ACAPI_Element_GetRelations(API_RoomRelation). But what I found out is that this is applicable to doors where its face/surface touches the edge of a zone.</description>
      <pubDate>Sat, 11 Apr 2015 10:23:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-all-doors-on-a-zone-RE-OPEN/m-p/202524#M5340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-11T10:23:32Z</dc:date>
    </item>
  </channel>
</rss>

