<?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 Skip exclusive access by code? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Skip-exclusive-access-by-code/m-p/276333#M2455</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;So my goal is to open a file and to run some functions on the opened file. I am able to do that with catchprojectevent, but my problem is when the file is already opened. AC then asks if I want to open the file with exclusive access or as read only.&lt;BR /&gt;Is there a way to skip the message box? And choose one of it’s options automatically by code?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 11:48:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-14T11:48:27Z</dc:date>
    <item>
      <title>Skip exclusive access by code?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Skip-exclusive-access-by-code/m-p/276333#M2455</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;So my goal is to open a file and to run some functions on the opened file. I am able to do that with catchprojectevent, but my problem is when the file is already opened. AC then asks if I want to open the file with exclusive access or as read only.&lt;BR /&gt;Is there a way to skip the message box? And choose one of it’s options automatically by code?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 11:48:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Skip-exclusive-access-by-code/m-p/276333#M2455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Skip exclusive access by code?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Skip-exclusive-access-by-code/m-p/276334#M2456</link>
      <description>Hi Tomer1,&lt;BR /&gt;
&lt;BR /&gt;
If you are implementing an automation, then all the dialogs will stuck your process. I recommend you the DGEnableAutoClose function (include DG.h). This function will automatically close all the popup dialogs. Please note that it's equivalent with clicking to the default button on the dialogs.&lt;BR /&gt;
Do not forget to call DGDisableAutoClose after your automation finished working.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Tomer1 wrote:&lt;BR /&gt;AC then asks if I want to open the file with exclusive access or as read only.&lt;/BLOCKQUOTE&gt;

AC asks this when the file is used by other process, locked. If you delete the lockfile next to the project file, then your issue can be solved.&lt;BR /&gt;
But I still think the DGEnableAutoClose/DGDisableAutoClose solution could be better, because it's a solution for all other popup dialogs also.</description>
      <pubDate>Thu, 03 Sep 2020 07:25:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Skip-exclusive-access-by-code/m-p/276334#M2456</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2020-09-03T07:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Skip exclusive access by code?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Skip-exclusive-access-by-code/m-p/276335#M2457</link>
      <description>Thanks. That was exactly what I looked for.</description>
      <pubDate>Tue, 08 Sep 2020 09:07:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Skip-exclusive-access-by-code/m-p/276335#M2457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-08T09:07:42Z</dc:date>
    </item>
  </channel>
</rss>

