<?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: C++/Bounds cannot be obtained. in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/C-Bounds-cannot-be-obtained/m-p/652512#M10139</link>
    <description>&lt;P&gt;Hi, You're right, it seems be a bug. As a workaround, please try the following code for getting the bounds of element.&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt; API_Box3D box{};&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; err = ACAPI_Element_CalcBounds(&amp;amp;head, &amp;amp;box);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;HTH.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 09:09:19 GMT</pubDate>
    <dc:creator>Hiromichi Shinkawa</dc:creator>
    <dc:date>2025-02-20T09:09:19Z</dc:date>
    <item>
      <title>C++/Bounds cannot be obtained.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/C-Bounds-cannot-be-obtained/m-p/650488#M10102</link>
      <description>&lt;P&gt;Bounds cannot be obtained.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ArchiCAD27/Win10&lt;BR /&gt;I am creating an add-on with VisualStudioC++2019.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I place one column and one beam and try to obtain the bounds for each, the following values ​​are returned:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;xMin = 1.0
yMin = 1.0
zMin = 1.0
xMax = -1.0
yMax = -1.0
zMax = -1.0

Guid=6A873A33-3449-4C7F-A140-36D4C8FF3B16
BoundsMin 1.000000 1.000000 1.000000
BoundsMax -1.000000 -1.000000 -1.000000
Volume 0.325369
Guid=51ED5443-8EE8-4C02-AE2D-1E58540E5CDD
BoundsMin 1.000000 1.000000 1.000000
BoundsMax -1.000000 -1.000000 -1.000000
Volume 0.049327&lt;/LI-CODE&gt;
&lt;P&gt;Bounds is&lt;BR /&gt;ACAPI_ModelAccess_Get3DInfo(head, &amp;amp;info3D);&lt;BR /&gt;The function return value is NOERROR.&lt;BR /&gt;Why does Bounds return such a fixed value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 18:15:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/C-Bounds-cannot-be-obtained/m-p/650488#M10102</guid>
      <dc:creator>nishida_jp</dc:creator>
      <dc:date>2025-02-06T18:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: C++/Bounds cannot be obtained.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/C-Bounds-cannot-be-obtained/m-p/652512#M10139</link>
      <description>&lt;P&gt;Hi, You're right, it seems be a bug. As a workaround, please try the following code for getting the bounds of element.&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt; API_Box3D box{};&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; err = ACAPI_Element_CalcBounds(&amp;amp;head, &amp;amp;box);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;HTH.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 09:09:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/C-Bounds-cannot-be-obtained/m-p/652512#M10139</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2025-02-20T09:09:19Z</dc:date>
    </item>
  </channel>
</rss>

