<?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: Refreshing / redrawing the 3D window in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/717163#M11048</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made some experiment in the addon. So the full flow is that the addon gets a message from a different scope (at this point the focus is not necessarily on AC). As part of processing the message we try to adjust the camera with&amp;nbsp;ACAPI_View_Change3DProjectionSets. We tried to have it as it is, also tried to redraw, the only thing helped so far is rebuild.&lt;/P&gt;&lt;P&gt;We tried to use timer based approach, directly calling the function, we tried playing with&amp;nbsp;ACAPI_AddOnAddOnCommunication_CallFromEventLoop considering that maybe AC does not like this externally initialized navigation, so far without success. All 3 approach work with rebuild in a stable way, and none of them works with redraw.&lt;/P&gt;&lt;P&gt;If I move the mouse on the 3d view, elements are highlighted like they are shown, or I can place things in the plan based on the shown view, but in the very moment I move the mouse wheel, or drag the plan slightly away, the view immediately updates exactly how we would expect after calling&amp;nbsp;ACAPI_View_Change3DProjectionSets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we miss something? I'll try to isolate the problem and just add a button for debugging to see if the problem is somehow related to the communication module.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2026 14:05:42 GMT</pubDate>
    <dc:creator>GaborHorvath</dc:creator>
    <dc:date>2026-10-09T14:05:42Z</dc:date>
    <item>
      <title>Refreshing / redrawing the 3D window</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/716695#M11044</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know if it is possible to refresh the 3D view after positioning the camera? If I set the camera from my addon I can do a rebuild, but that can cost a lot in case of having larger models. The redraw feature of the API does not seem to work for this case, so far I did not find any solution just to call rebuild. Sure when I move manually the model there is no rebuild all the time, otherwise the 3d performance would be really bad even on smaller models, not just on large ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2026 08:21:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/716695#M11044</guid>
      <dc:creator>GaborHorvath</dc:creator>
      <dc:date>2026-10-07T08:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing / redrawing the 3D window</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/716782#M11045</link>
      <description>&lt;P&gt;Hi Gábor,&lt;/P&gt;
&lt;P&gt;What do you use to move the camera? Could you post some code snippets?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Tamás&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2026 14:24:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/716782#M11045</guid>
      <dc:creator>Tamas Polyak</dc:creator>
      <dc:date>2026-10-07T14:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing / redrawing the 3D window</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/716957#M11047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basicalliy we use&amp;nbsp;ACAPI_View_Change3DProjectionSets. Something sure happens, because after the API call if I manually rotate the model slightly, then suddenly the view jumps where it should have been after the API call. If we call&amp;nbsp;ACAPI_View_Rebuild actually it works, just rebuilding large models is not the best,&amp;nbsp;ACAPI_View_Redraw does not seem to do anything. Actually if I do not change the view manually, I just try to place a column for example, then it goes in the model where I clicked. So the repositioning really happens after I manually adjust something regarding the camera or view options like switching from shaded to wireframe or something like that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if there is another function we can use for setting the camera.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2026 10:21:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/716957#M11047</guid>
      <dc:creator>GaborHorvath</dc:creator>
      <dc:date>2026-10-08T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing / redrawing the 3D window</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/717163#M11048</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made some experiment in the addon. So the full flow is that the addon gets a message from a different scope (at this point the focus is not necessarily on AC). As part of processing the message we try to adjust the camera with&amp;nbsp;ACAPI_View_Change3DProjectionSets. We tried to have it as it is, also tried to redraw, the only thing helped so far is rebuild.&lt;/P&gt;&lt;P&gt;We tried to use timer based approach, directly calling the function, we tried playing with&amp;nbsp;ACAPI_AddOnAddOnCommunication_CallFromEventLoop considering that maybe AC does not like this externally initialized navigation, so far without success. All 3 approach work with rebuild in a stable way, and none of them works with redraw.&lt;/P&gt;&lt;P&gt;If I move the mouse on the 3d view, elements are highlighted like they are shown, or I can place things in the plan based on the shown view, but in the very moment I move the mouse wheel, or drag the plan slightly away, the view immediately updates exactly how we would expect after calling&amp;nbsp;ACAPI_View_Change3DProjectionSets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we miss something? I'll try to isolate the problem and just add a button for debugging to see if the problem is somehow related to the communication module.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2026 14:05:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/717163#M11048</guid>
      <dc:creator>GaborHorvath</dc:creator>
      <dc:date>2026-10-09T14:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing / redrawing the 3D window</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/717183#M11049</link>
      <description>&lt;P&gt;If I create a button, and have this in place it still does not seem to work until I zoom or move a little, then it jumps to the right place. The whole thing could have been in the button callback, just now I did not care about that so much.&lt;/P&gt;&lt;PRE&gt;virtual void ButtonClicked (const DG::ButtonClickEvent&amp;amp; ev) override&lt;BR /&gt;{&lt;BR /&gt;if (ev.GetSource () != &amp;amp;rotateButton) return;&lt;BR /&gt;const GSErrCode err = Camera::RotateRight10 ();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;static GSErrCode RotateRight10 ()&lt;BR /&gt;{&lt;BR /&gt;API_3DProjectionInfo proj;&lt;BR /&gt;if (!ReadProjection (proj)) return APIERR_GENERAL;&lt;BR /&gt;SetRotation (proj);&lt;BR /&gt;return ACAPI_View_Change3DProjectionSets (&amp;amp;proj);&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I also tried with modal window instead of a palette.&lt;BR /&gt;The result in all cases that rebuild is required.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2026 18:23:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Refreshing-redrawing-the-3D-window/m-p/717183#M11049</guid>
      <dc:creator>GaborHorvath</dc:creator>
      <dc:date>2026-10-09T18:23:11Z</dc:date>
    </item>
  </channel>
</rss>

