<?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: How to switch to 3d window by ACAPI? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664068#M10420</link>
    <description>&lt;P&gt;You can use also&amp;nbsp;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___view.html#ga29d14c66da55dafa763d5ddeb6663fa0" target="_self"&gt;ACAPI_View_GoToView()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 09:19:36 GMT</pubDate>
    <dc:creator>kolioi</dc:creator>
    <dc:date>2025-05-29T09:19:36Z</dc:date>
    <item>
      <title>How to switch to 3d window by ACAPI?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/663914#M10408</link>
      <description>&lt;P&gt;Hi,everyone:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;GSErrCode err = ACAPI_Sight_SelectSight (nullptr, &amp;amp;origSight);
if (err != NoError) {
	ErrorBeep ("Cannot switch to the 3D sight", err);
	return err;
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I&amp;nbsp; try this to&amp;nbsp;switch to the 3d window, but it does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sxs_0-1748412849581.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/87312i0133B1FE0A6B116A/image-size/large?v=v2&amp;amp;px=999" role="button" title="sxs_0-1748412849581.png" alt="sxs_0-1748412849581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 11:56:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/663914#M10408</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-05-29T11:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch to 3d window by ACAPI?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/663954#M10409</link>
      <description>&lt;P&gt;Call &lt;EM&gt;ACAPI_Database_ChangeCurrentDatabase&lt;/EM&gt; passing&amp;nbsp;&lt;EM&gt;APIWind_3DModelID&lt;/EM&gt; as the&amp;nbsp;&lt;EM&gt;API_DatabaseInfo.typeID&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 11:43:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/663954#M10409</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2025-05-28T11:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch to 3d window by ACAPI?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664056#M10415</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sxs_1-1748500540076.png" style="width: 538px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/87372i4C1B82C5D3179905/image-dimensions/538x157?v=v2" width="538" height="157" role="button" title="sxs_1-1748500540076.png" alt="sxs_1-1748500540076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This API still has no effect, but the return value is NoError. Is it related to my ArchiCad currently running DEMO status?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sxs_0-1748500445046.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/87371i8C125162CDD252D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sxs_0-1748500445046.png" alt="sxs_0-1748500445046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 11:56:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664056#M10415</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-05-29T11:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch to 3d window by ACAPI?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664064#M10418</link>
      <description>&lt;LI-CODE lang="cpp"&gt;{
		API_WindowInfo      windowInfo;
		API_DatabaseInfo    origDB, planDB;
		API_Element         element;
		GS::Array&amp;lt;API_Guid&amp;gt; elemList;
		GSErrCode           err;

		BNZeroMemory(&amp;amp;planDB, sizeof(API_DatabaseInfo));
		planDB.typeID = APIWind_3DModelID;

		//ACAPI_Database(APIDb_GetCurrentDatabaseID, &amp;amp;origDB, nullptr);
		ACAPI_Database_ChangeCurrentDatabase(&amp;amp;planDB);
		//
		BNZeroMemory(&amp;amp;windowInfo, sizeof(API_WindowInfo));
		windowInfo.typeID = APIWind_3DModelID;
		windowInfo.databaseUnId = planDB.databaseUnId;
		err = ACAPI_Window_ChangeWindow(&amp;amp;windowInfo);
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;this can work.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 09:01:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664064#M10418</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-05-29T09:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch to 3d window by ACAPI?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664068#M10420</link>
      <description>&lt;P&gt;You can use also&amp;nbsp;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___view.html#ga29d14c66da55dafa763d5ddeb6663fa0" target="_self"&gt;ACAPI_View_GoToView()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 09:19:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664068#M10420</guid>
      <dc:creator>kolioi</dc:creator>
      <dc:date>2025-05-29T09:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch to 3d window by ACAPI?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664072#M10421</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/160656"&gt;@sxs&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;This API still has no effect, but the return value is NoError. Is it related to my ArchiCad currently running DEMO status?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you say it has no effect, do you mean you don't see the view come to the front? If so, this isn't what&amp;nbsp;&lt;EM&gt;ACAPI_Database_ChangeCurrentDatabase&lt;/EM&gt; does. It makes the 3D window the current database for all following API commands that concern a specific database, e.g.&amp;nbsp;&lt;EM&gt;ACAPI_View_Rebuild&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If you simply want to bring the view to the front, use&amp;nbsp;&lt;EM&gt;ACAPI_Window_ChangeWindow&lt;/EM&gt;, but I don't think that's what you want to do in the context of a notification handler&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 10:19:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664072#M10421</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2025-05-29T10:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch to 3d window by ACAPI?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664112#M10422</link>
      <description>&lt;P&gt;Ok,I got it&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 01:31:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-switch-to-3d-window-by-ACAPI/m-p/664112#M10422</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-05-30T01:31:08Z</dc:date>
    </item>
  </channel>
</rss>

