<?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 use APIDo_GoToViewID with a NavItem? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-use-APIDo-GoToViewID-with-a-NavItem/m-p/398001#M8579</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/33010"&gt;@SzokeFerenc&lt;/a&gt; was so nice to help me out with this one:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-cpp"&gt;&lt;CODE&gt;GS::Guid itemGuid = APIGuid2GSGuid(item.guid);
char guidStr[256] = "0";
GSErrcode err = itemGuid.ConvertToString(guidStr);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 20:31:30 GMT</pubDate>
    <dc:creator>Joel Buehler</dc:creator>
    <dc:date>2023-09-12T20:31:30Z</dc:date>
    <item>
      <title>How to use APIDo_GoToViewID with a NavItem?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-use-APIDo-GoToViewID-with-a-NavItem/m-p/397729#M8569</link>
      <description>&lt;P&gt;hehey evrybody!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ACAPI_Automate Call has this cool feature where you can call "APIDo_GoToViewID"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://archicadapi.graphisoft.com/documentation/apido_gotoviewid?s=APIDo_GoToViewID" target="_blank" rel="noopener"&gt;https://archicadapi.graphisoft.com/documentation/apido_gotoviewid?s=APIDo_GoToViewID&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and there are even a few posts about this method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355172" target="_blank" rel="noopener"&gt;https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355172&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this one is very helpfull since it says exactly waht to do: Convert a API_Guid to as GS::Guid and then to a c string.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But unfortunaltly waht ever i do, i allways get a&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;APIERR_BADPARS error. i tried evry possible flavour, no luck.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;P&gt;API_Guid to GS::Guid with "APIGuid2GSGuid(guid1)", then GS::Guid to GS::String with "ToString()" and then to const char * with "ToCStr()"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i retrieve the GUID of the navigator item trough&amp;nbsp;APINavigator_SearchNavigatorItemID and im using the navItem.guid.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i want to open a NavItem and not go trough an API_Element like in the example.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;does anyone have a tipp?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:53:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-use-APIDo-GoToViewID-with-a-NavItem/m-p/397729#M8569</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2024-09-16T12:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use APIDo_GoToViewID with a NavItem?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-use-APIDo-GoToViewID-with-a-NavItem/m-p/398001#M8579</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/33010"&gt;@SzokeFerenc&lt;/a&gt; was so nice to help me out with this one:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-cpp"&gt;&lt;CODE&gt;GS::Guid itemGuid = APIGuid2GSGuid(item.guid);
char guidStr[256] = "0";
GSErrcode err = itemGuid.ConvertToString(guidStr);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 20:31:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-use-APIDo-GoToViewID-with-a-NavItem/m-p/398001#M8579</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2023-09-12T20:31:30Z</dc:date>
    </item>
  </channel>
</rss>

