<?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 can I determine the corner coordinate of a door opening? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-determine-the-corner-coordinate-of-a-door-opening/m-p/254968#M3391</link>
    <description>Hi Dan,&lt;BR /&gt;
&lt;BR /&gt;
Using ACAPI_Element_GetQuantities function you can get easily the width and nominal width of the door. The width should be the full width what you are looking for:
&lt;PRE&gt;API_ElementQuantity quantity;
API_QuantitiesMask  mask;
API_Quantities      quantities;
BNZeroMemory (&amp;amp;quantity, sizeof (API_ElementQuantity));
quantities.elements = &amp;amp;quantity;

ACAPI_ELEMENT_QUANTITY_MASK_CLEAR (mask);
ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, width1);
ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, width2);
ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, nWidth1);
ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, nWidth2);
GSErrCode err = ACAPI_Element_GetQuantities (doorGuid, nullptr, &amp;amp;quantities, &amp;amp;mask);
if (err == NoError) {
    ACAPI_WriteReport ("Door quantities:\n
                        Reveal Side Width = %.6lf\n
                        Opposite Side Width = %.6lf\n
                        Reveal Side Nominal Width = %.6lf\n
                        Opposite Side Nominal Width = %.6lf\n",
                        true,
                        quantity.door.width1,
                        quantity.door.width2,
                        quantity.door.nWidth1,
                        quantity.door.nWidth2);
}&lt;/PRE&gt;

Regards,&lt;BR /&gt;
Tibor</description>
    <pubDate>Tue, 23 Oct 2018 18:19:43 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2018-10-23T18:19:43Z</dc:date>
    <item>
      <title>How can I determine the corner coordinate of a door opening?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-determine-the-corner-coordinate-of-a-door-opening/m-p/254967#M3390</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello Archicad community,&lt;BR /&gt;&lt;BR /&gt;I know the front center point coordinate of my door element (see attachment), and starting from there using the width of the door opening I could calculate the door opening coordinate on the side (see attachment). The problem with fetching the width of the door, however, is that it depends on a setting, so that the door width could include the frame or not (80cm or 100cm). Is there an easy way to always get the full opening width (100cm)? Because if I would simply add the frame widths on both sides (20cm total) I would get 120cm in case the setting already includes the frame widths. If I could directly get the coordinate of the corner via the wall without having to know the door opening width this would also be fine.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;Archicad version: 22&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:35:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-determine-the-corner-coordinate-of-a-door-opening/m-p/254967#M3390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-05T11:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I determine the corner coordinate of a door opening?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-determine-the-corner-coordinate-of-a-door-opening/m-p/254968#M3391</link>
      <description>Hi Dan,&lt;BR /&gt;
&lt;BR /&gt;
Using ACAPI_Element_GetQuantities function you can get easily the width and nominal width of the door. The width should be the full width what you are looking for:
&lt;PRE&gt;API_ElementQuantity quantity;
API_QuantitiesMask  mask;
API_Quantities      quantities;
BNZeroMemory (&amp;amp;quantity, sizeof (API_ElementQuantity));
quantities.elements = &amp;amp;quantity;

ACAPI_ELEMENT_QUANTITY_MASK_CLEAR (mask);
ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, width1);
ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, width2);
ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, nWidth1);
ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, nWidth2);
GSErrCode err = ACAPI_Element_GetQuantities (doorGuid, nullptr, &amp;amp;quantities, &amp;amp;mask);
if (err == NoError) {
    ACAPI_WriteReport ("Door quantities:\n
                        Reveal Side Width = %.6lf\n
                        Opposite Side Width = %.6lf\n
                        Reveal Side Nominal Width = %.6lf\n
                        Opposite Side Nominal Width = %.6lf\n",
                        true,
                        quantity.door.width1,
                        quantity.door.width2,
                        quantity.door.nWidth1,
                        quantity.door.nWidth2);
}&lt;/PRE&gt;

Regards,&lt;BR /&gt;
Tibor</description>
      <pubDate>Tue, 23 Oct 2018 18:19:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-determine-the-corner-coordinate-of-a-door-opening/m-p/254968#M3391</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2018-10-23T18:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I determine the corner coordinate of a door opening?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-determine-the-corner-coordinate-of-a-door-opening/m-p/254969#M3392</link>
      <description>Thanks a lot! width1 seems to work as intended.</description>
      <pubDate>Wed, 24 Oct 2018 07:58:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-determine-the-corner-coordinate-of-a-door-opening/m-p/254969#M3392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T07:58:32Z</dc:date>
    </item>
  </channel>
</rss>

