<?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 APIDo_​GoToViewID in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355172#M1604</link>
    <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please explain how the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;GSErrCode &lt;/SPAN&gt;&lt;A href="https://archicadapi.Graphisoft.com/documentation/acapi_automate" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ACAPI_Automate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt; &lt;SPAN class=""&gt;(
        &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;APIDo_GoToViewID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;,
        &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt; &lt;SPAN class=""&gt;char&lt;/SPAN&gt;*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;     &lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;viewGuidStr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;    )&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;function can be made not to throw an&amp;nbsp;&lt;SPAN&gt;APIERR_BADPARS&lt;/SPAN&gt;&amp;nbsp;error? Where can I find the right GUID to make the function run without an error? I don't see any GUIDs (matching the guid of the navigator view description) in the API_NavigatorView structure, I tried the GUID of the API_NavigatorItem but that throws an error.&lt;/P&gt;&lt;P&gt;Am I making a mistake when I try to make the GUID a const char* this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const char* viewGuidStr = APIGuidToString(item.guid).ToCStr();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2022 22:00:59 GMT</pubDate>
    <dc:creator>SzokeFerenc</dc:creator>
    <dc:date>2022-09-05T22:00:59Z</dc:date>
    <item>
      <title>APIDo_​GoToViewID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355172#M1604</link>
      <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please explain how the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;GSErrCode &lt;/SPAN&gt;&lt;A href="https://archicadapi.Graphisoft.com/documentation/acapi_automate" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ACAPI_Automate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt; &lt;SPAN class=""&gt;(
        &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;APIDo_GoToViewID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;,
        &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt; &lt;SPAN class=""&gt;char&lt;/SPAN&gt;*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;     &lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;viewGuidStr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;    )&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;function can be made not to throw an&amp;nbsp;&lt;SPAN&gt;APIERR_BADPARS&lt;/SPAN&gt;&amp;nbsp;error? Where can I find the right GUID to make the function run without an error? I don't see any GUIDs (matching the guid of the navigator view description) in the API_NavigatorView structure, I tried the GUID of the API_NavigatorItem but that throws an error.&lt;/P&gt;&lt;P&gt;Am I making a mistake when I try to make the GUID a const char* this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const char* viewGuidStr = APIGuidToString(item.guid).ToCStr();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 22:00:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355172#M1604</guid>
      <dc:creator>SzokeFerenc</dc:creator>
      <dc:date>2022-09-05T22:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: APIDo_​GoToViewID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355188#M1605</link>
      <description>&lt;P&gt;The documentation has an exemple of this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://archicadapi.Graphisoft.com/documentation/apido_gotoviewid" target="_blank"&gt;https://archicadapi.Graphisoft.com/documentation/apido_gotoviewid&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 07:21:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355188#M1605</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-09-06T07:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: APIDo_​GoToViewID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355202#M1606</link>
      <description>&lt;P&gt;Thank you for your reply. I've seen the example in the documentation before but as it requires a drawing as a parameter I thought it's a way of opening views put on a layout.&lt;/P&gt;&lt;P&gt;Does this mean that I have to make/link each view to a drawing that I want to switch to before using the goto function? The description of the function says it &lt;SPAN&gt;simulates the action when you open a view from the Project Navigator. From the navigator I can open any views that are not linked to any drawings or layouts&amp;nbsp;by simply clicking&amp;nbsp;it. This part is still not clear to me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 11:40:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355202#M1606</guid>
      <dc:creator>SzokeFerenc</dc:creator>
      <dc:date>2022-09-06T11:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: APIDo_​GoToViewID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355238#M1607</link>
      <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;I think I might have found the solution!&lt;/P&gt;&lt;P&gt;The GUID of the API_NavigatorItem will be accepted by the ACAPI_Automate function if it is converted into GS::Guid and then to const char*.&lt;/P&gt;&lt;P&gt;Seems to work for me!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 21:16:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIDo-GoToViewID/m-p/355238#M1607</guid>
      <dc:creator>SzokeFerenc</dc:creator>
      <dc:date>2022-09-06T21:16:54Z</dc:date>
    </item>
  </channel>
</rss>

