<?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: Switch to 3D view through API in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/247816#M2553</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
If you want to open a 3D window, not a specific 3D view, then these lines will do the trick for you:
&lt;PRE&gt;API_WindowInfo newWindowInfo = {};
newWindowInfo.typeID = APIWind_3DModelID;
ACAPI_Automate (APIDo_ChangeWindowID, &amp;amp;newWindowInfo);&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Mar 2021 19:03:46 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2021-03-10T19:03:46Z</dc:date>
    <item>
      <title>Switch to 3D view through API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/247815#M2552</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I would like the functionality in my add-on to switch database/window to a 3D View from the Project Navigator. I have tried to use APIDo_GoToViewID, with the guid of a NavigatorItem of type API_ProjectMap and API_PublicViewMap, but the function keeps returning APIERR_BADPARS. I have also tried parsing the guid to a const char*, but with no luck.&lt;BR /&gt;&lt;BR /&gt;Is APIDo_GoToViewID even possible to use with 3D views or is it only drawings?&lt;BR /&gt;&lt;BR /&gt;I have also taken a look at the Navigator_Test example, but it seems like a lot of work switching to the 3D model window and thereafter applying all the view settings (LayerCombinations, DrawingScale and so on...) of the NavigatorViewItem. &lt;BR /&gt;&lt;BR /&gt;What is the simplest way of showing a 3D View in the 3D model window through the API?&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:57:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/247815#M2552</guid>
      <dc:creator>gunners6522</dc:creator>
      <dc:date>2021-09-14T07:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Switch to 3D view through API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/247816#M2553</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
If you want to open a 3D window, not a specific 3D view, then these lines will do the trick for you:
&lt;PRE&gt;API_WindowInfo newWindowInfo = {};
newWindowInfo.typeID = APIWind_3DModelID;
ACAPI_Automate (APIDo_ChangeWindowID, &amp;amp;newWindowInfo);&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Mar 2021 19:03:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/247816#M2553</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2021-03-10T19:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Switch to 3D view through API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/247817#M2554</link>
      <description>Hi, thanks for replying!&lt;BR /&gt;
&lt;BR /&gt;
But if I want to switch to a specific 3D view, is this then possible? I can't seem to retrieve a database for a specific 3D view. The only way I've found is to apply the different viewsettings one by one, for whatever 3D context you are in. This however, seems a little overkill because I also have to reset the settings. Switching to the 3D window seems to open the most recent 3D view, but I would prefer not to tamper with any of the 3D views.</description>
      <pubDate>Thu, 11 Mar 2021 10:43:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/247817#M2554</guid>
      <dc:creator>gunners6522</dc:creator>
      <dc:date>2021-03-11T10:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Switch to 3D view through API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/355239#M2555</link>
      <description>&lt;P&gt;Hi gunners6522!&lt;/P&gt;&lt;P&gt;I also have/had the same problems you&amp;nbsp; described above, I received&amp;nbsp;&lt;SPAN&gt;APIERR_BADPARS error when trying the function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think I found the solution by trial and error. I just used the GUID of the view (API_NavigatorItem guid) converted it into GS::Guid and then to const char*.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It did the job for me! This way I can open views from the ProjectNavigator.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 21:31:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Switch-to-3D-view-through-API/m-p/355239#M2555</guid>
      <dc:creator>SzokeFerenc</dc:creator>
      <dc:date>2022-09-06T21:31:24Z</dc:date>
    </item>
  </channel>
</rss>

