<?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: Silent Rendering By code in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280411#M3333</link>
    <description>You can perform rendering in multi-threading，and this function with no crash in multi-threading to operate the AC database: ACAPI_Command_CallFromEventLoop.The Api doc has a demo with multithreading operate.</description>
    <pubDate>Thu, 19 Dec 2019 04:14:45 GMT</pubDate>
    <dc:creator>leilei</dc:creator>
    <dc:date>2019-12-19T04:14:45Z</dc:date>
    <item>
      <title>Silent Rendering By code</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280408#M3330</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, &lt;BR /&gt;I'm trying to write a function that renders a couple of images using CineRender.&lt;BR /&gt;In order to do so, i used the API_Automate's Do_PhotoRender function, and added the relevant parameters. It works great.&lt;BR /&gt;&lt;BR /&gt;The only problem, is that while rendering, AC is "stuck" until the end of the rendering process. This is different from using the Rendering function in the creative imaging tab. In the "PhotoRender Projection" function, i can work while the program is rendering.&lt;BR /&gt;&lt;BR /&gt;Any idea on how to tackle this issue? Is there a way to render without getting the whole program stuck?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;BR /&gt;Ido&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:48:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280408#M3330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T07:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Rendering By code</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280409#M3331</link>
      <description>Hi,this function can help you :ACAPI_Command_CallFromEventLoop</description>
      <pubDate>Wed, 18 Dec 2019 06:28:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280409#M3331</guid>
      <dc:creator>leilei</dc:creator>
      <dc:date>2019-12-18T06:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Rendering By code</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280410#M3332</link>
      <description>Hi,&lt;BR /&gt;
Thanks for the quick response!&lt;BR /&gt;
Could you elaborate more on how to use it?&lt;BR /&gt;
I tried using it to call my own rendering function (in silent mode), that contains ACAPI_Automate's Do_photoRender. It worked well, but once the Do_photoRender is called, it still gets the computer stuck. &lt;BR /&gt;
I suspect that  it might be because of the params sent to the CineRender addon (using ACAPI_Automate), which are probably not silent.&lt;BR /&gt;
If so-  Do you know how to get the CineRender's mdid and cmdid, so i. Could do it by myself?&lt;BR /&gt;
If not, am i missing something? Is there another way to use it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 18 Dec 2019 13:27:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280410#M3332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-18T13:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Rendering By code</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280411#M3333</link>
      <description>You can perform rendering in multi-threading，and this function with no crash in multi-threading to operate the AC database: ACAPI_Command_CallFromEventLoop.The Api doc has a demo with multithreading operate.</description>
      <pubDate>Thu, 19 Dec 2019 04:14:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280411#M3333</guid>
      <dc:creator>leilei</dc:creator>
      <dc:date>2019-12-19T04:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Rendering By code</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280412#M3334</link>
      <description>Thanks a lot, Leilei. &lt;BR /&gt;
I've started to implement the example and I'm starting to get the hang of it.&lt;BR /&gt;
I currently have a function that creates a new thread, and in the new thread calls the rendering function. It seems to be working alright.&lt;BR /&gt;
&lt;BR /&gt;
The problem is that even though the rendering function is on a new thread, AC still seems to be stuck. It looks like the new thread can't work simultaneously with the main thread. &lt;BR /&gt;
&lt;BR /&gt;
Any idea on how to get over this problem? Is there a way for me to use both threads asynchronously using the GS:Thread class? Or a different class? Maybe I'm understanding the problem wrong?&lt;BR /&gt;
&lt;BR /&gt;
And again, thanks for all the help &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 23 Dec 2019 10:22:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Silent-Rendering-By-code/m-p/280412#M3334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-23T10:22:34Z</dc:date>
    </item>
  </channel>
</rss>

