<?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: APIEnv_GetDocumentFrom3DSettingsID crashes in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/616627#M9700</link>
    <description>&lt;P&gt;Hi Petteri,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No problem, I found it in our bug database. The issue seems to be around the initialization of the `filterAndCutSettings` member of `API_DocumentFrom3DType`, it contains a std::map that seems to cause the crash.&lt;/P&gt;
&lt;P&gt;The good news is that I can reproduce it in AC26 even on my Mac, but not in AC27 or AC28. However, I don't see any change in that part of the source that would explain this behavior, so I'll have to dig deeper.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Ákos&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2024 13:21:49 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2024-07-19T13:21:49Z</dc:date>
    <item>
      <title>APIEnv_GetDocumentFrom3DSettingsID crashes</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/615976#M9681</link>
      <description>&lt;P&gt;Hi all, my first post here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So ACAPI_Environment( APIEnv_GetDocumentFrom3DSettingsID, ...) crashes with AC26 and AC27 (in AC27 I have tested the native version). Any workaround or estimate when the fix will be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made a video to show steps to reproduce &lt;A href="https://www.dropbox.com/scl/fi/rkoajvjlyatkxn03zjb39/Navigator3DCrash.mp4?rlkey=k071188qapahnua9wvtddqco4&amp;amp;dl=0" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Petteri Heiskari, ArchiFrame guy&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 17:12:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/615976#M9681</guid>
      <dc:creator>PetteriHeiskari</dc:creator>
      <dc:date>2024-07-16T17:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: APIEnv_GetDocumentFrom3DSettingsID crashes</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/616129#M9689</link>
      <description>&lt;P&gt;Hi Petteri,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please tell us the bug ID?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Akos&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 09:58:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/616129#M9689</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2024-07-17T09:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: APIEnv_GetDocumentFrom3DSettingsID crashes</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/616547#M9696</link>
      <description>&lt;P&gt;Hi Ákos, sorry - don't have the crash report ID but you can easily reproduce this using the DevKit example project. Please see the linked video for the steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Köszönöm szépen, Petteri&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 09:11:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/616547#M9696</guid>
      <dc:creator>PetteriHeiskari</dc:creator>
      <dc:date>2024-07-19T09:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: APIEnv_GetDocumentFrom3DSettingsID crashes</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/616627#M9700</link>
      <description>&lt;P&gt;Hi Petteri,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No problem, I found it in our bug database. The issue seems to be around the initialization of the `filterAndCutSettings` member of `API_DocumentFrom3DType`, it contains a std::map that seems to cause the crash.&lt;/P&gt;
&lt;P&gt;The good news is that I can reproduce it in AC26 even on my Mac, but not in AC27 or AC28. However, I don't see any change in that part of the source that would explain this behavior, so I'll have to dig deeper.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Ákos&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 13:21:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/616627#M9700</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2024-07-19T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: APIEnv_GetDocumentFrom3DSettingsID crashes</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/628819#M9771</link>
      <description>&lt;P&gt;Hi Ákos,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now I have a crash ID for AC27:&lt;/P&gt;
&lt;P&gt;AC27-2024-08-27-09-39-56-6516&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another one without VS debugger running:&lt;/P&gt;
&lt;P&gt;AC27-2024-08-27-09-44-56-1900&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The related file &lt;A href="https://www.dropbox.com/scl/fi/hou7wiybuxresb3r8aarh/ArchiFrameDemo2015Start.pla?rlkey=smxjq23qjhnt8irhz13v465yf&amp;amp;st=7adi9nr1&amp;amp;dl=0" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And what I did was to do &lt;STRONG&gt;the bolded&lt;/STRONG&gt; call on the active 3D document:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// Addition 2/2024: Support picking marquee from 3D document if axonometry
API_DatabaseInfo rDbInfo;
API_DocumentFrom3DType rDocFrom3D;
 
if (ACAPI_Database(APIDb_GetCurrentDatabaseID, &amp;amp;rDbInfo, NULL) == 0 &amp;amp;&amp;amp; rDbInfo.typeID == APIWind_DocumentFrom3DID &amp;amp;&amp;amp;
ACAPI_View_GetDocumentFrom3DSettings(&amp;amp;rDbInfo.databaseUnId, &amp;amp;rDocFrom3D) == 0 &amp;amp;&amp;amp; rDocFrom3D.projectionSetting.isPersp == false)
{
    // Do something
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards, Petteri&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 12:44:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIEnv-GetDocumentFrom3DSettingsID-crashes/m-p/628819#M9771</guid>
      <dc:creator>PetteriHeiskari</dc:creator>
      <dc:date>2024-08-28T12:44:28Z</dc:date>
    </item>
  </channel>
</rss>

