<?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: Process Window not working in MacOS in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586655#M9146</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/12765"&gt;@Viktor Kovacs&lt;/a&gt;&amp;nbsp;. That fixed the issue.&amp;nbsp;&lt;BR /&gt;Also just wondering... Is there any way to control the behaviour of the process window on mouse-hover? I wanted to show a different text message than "Abort".&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 11:20:57 GMT</pubDate>
    <dc:creator>Aathil</dc:creator>
    <dc:date>2024-02-05T11:20:57Z</dc:date>
    <item>
      <title>Process Window not working in MacOS</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586184#M9141</link>
      <description>&lt;P&gt;I have a simple process window that is working properly in Windows. But it is not even showing in MacOS.&lt;/P&gt;
&lt;P&gt;Below is a simplified version of my code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Int32 maxPercentageValue = 100;
GS::UniString title("Title");
GS::UniString subTitle("subTitle");
int renderPhaseCount = 10;

ACAPI_Interface(APIIo_InitProcessWindowID, &amp;amp;title, &amp;amp;renderPhaseCount);
ACAPI_Interface(APIIo_SetNextProcessPhaseID, &amp;amp;subTitle, &amp;amp;maxPercentageValue);

//Start rendering different sets of elements(walls, stairs, doors...) where each set 
//corresponds to different phases of the process window


for(int i=0;i&amp;lt;totalElementsInCurrentSet;i++){
// Render one element from the set
...

//Update process window
Int32 percentage = (Int32) i*100/totalElementsInCurrentSet;
ACAPI_Interface(APIIo_SetProcessValueID, &amp;amp;percentage,NULL)
}


ACAPI_Interface(APIIo_SetNextProcessPhaseID, &amp;amp;subTitle, &amp;amp;maxPercentageValue);

// Do the same for the next set...


//Close process window after completion of rendering
ACAPI_Interface(APIIo_CloseProcessWindowID, NULL, NULL);

//Show render report( I don't know if this code affects the process window or not)
DGAlert(DG_INFORMATION, "Render report", "Done", "", "OK");&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I tried the example Addons(Communication_Manager, DG_Test), the process window is showing properly for those in MacOS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 09:28:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586184#M9141</guid>
      <dc:creator>Aathil</dc:creator>
      <dc:date>2024-09-17T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Process Window not working in MacOS</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586533#M9143</link>
      <description>&lt;P&gt;On mac you need to call &lt;STRONG&gt;APIIo_IsProcessCanceledID&lt;/STRONG&gt; after&amp;nbsp;&lt;STRONG&gt;APIIo_SetProcessValueID&lt;/STRONG&gt; for the process window to appear. It is also recommended to handle the return value and stop the process if it returns true.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 13:12:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586533#M9143</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2024-02-04T13:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Process Window not working in MacOS</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586655#M9146</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/12765"&gt;@Viktor Kovacs&lt;/a&gt;&amp;nbsp;. That fixed the issue.&amp;nbsp;&lt;BR /&gt;Also just wondering... Is there any way to control the behaviour of the process window on mouse-hover? I wanted to show a different text message than "Abort".&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 11:20:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586655#M9146</guid>
      <dc:creator>Aathil</dc:creator>
      <dc:date>2024-02-05T11:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Process Window not working in MacOS</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586737#M9148</link>
      <description>&lt;P&gt;As far as I know you can't modify the abort text.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 18:45:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Process-Window-not-working-in-MacOS/m-p/586737#M9148</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2024-02-05T18:45:07Z</dc:date>
    </item>
  </channel>
</rss>

