<?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 APINavigator_SearchNavigatorItemID question in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/APINavigator-SearchNavigatorItemID-question/m-p/357768#M1171</link>
    <description>&lt;P&gt;Hello Everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm experimenting with the ACAPI_Navigator functions. My question is why does included code part&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/U&gt; find navigator items with type:&amp;nbsp;API_StoryNavItem,&amp;nbsp;API_PerspectiveNavItem and API_AxonometryNavItem?&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GS::Array&amp;lt;API_NavigatorItem&amp;gt; possible_items;
possible_items.Clear();
GS::Array&amp;lt;API_NavigatorItem&amp;gt; found;
API_NavigatorItem nav_item;
nav_item.mapId = API_PublicViewMap;

for (Int32 type_ID = API_UndefinedNavItem; type_ID &amp;lt;= API_DrawingNavItem; type_ID++)
{
    nav_item.itemType = (API_NavigatorItemTypeID) type_ID;
    found.Clear();
    err = ACAPI_Navigator(APINavigator_SearchNavigatorItemID, &amp;amp;nav_item, nullptr, &amp;amp;found);
    ACAPI_WriteReport("TypeID: " + GS::ValueToUniString(type_ID) + " found: " + GS::ValueToUniString(found.GetSize()), true);
    if (err == NoError &amp;amp;&amp;amp; found.GetSize() &amp;gt; 0)
    {
	possible_items.Append(found);
    }
						
}&lt;/LI-CODE&gt;&lt;P&gt;I want to find all the NavigatorItems in the PublicViewMap, but this function seems to ignore sections and elevations and all other than above mentioned types. What other parameters of nav_item need to be set to get all the NavigatorItems?&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;</description>
    <pubDate>Sun, 02 Oct 2022 21:58:26 GMT</pubDate>
    <dc:creator>SzokeFerenc</dc:creator>
    <dc:date>2022-10-02T21:58:26Z</dc:date>
    <item>
      <title>APINavigator_SearchNavigatorItemID question</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APINavigator-SearchNavigatorItemID-question/m-p/357768#M1171</link>
      <description>&lt;P&gt;Hello Everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm experimenting with the ACAPI_Navigator functions. My question is why does included code part&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/U&gt; find navigator items with type:&amp;nbsp;API_StoryNavItem,&amp;nbsp;API_PerspectiveNavItem and API_AxonometryNavItem?&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GS::Array&amp;lt;API_NavigatorItem&amp;gt; possible_items;
possible_items.Clear();
GS::Array&amp;lt;API_NavigatorItem&amp;gt; found;
API_NavigatorItem nav_item;
nav_item.mapId = API_PublicViewMap;

for (Int32 type_ID = API_UndefinedNavItem; type_ID &amp;lt;= API_DrawingNavItem; type_ID++)
{
    nav_item.itemType = (API_NavigatorItemTypeID) type_ID;
    found.Clear();
    err = ACAPI_Navigator(APINavigator_SearchNavigatorItemID, &amp;amp;nav_item, nullptr, &amp;amp;found);
    ACAPI_WriteReport("TypeID: " + GS::ValueToUniString(type_ID) + " found: " + GS::ValueToUniString(found.GetSize()), true);
    if (err == NoError &amp;amp;&amp;amp; found.GetSize() &amp;gt; 0)
    {
	possible_items.Append(found);
    }
						
}&lt;/LI-CODE&gt;&lt;P&gt;I want to find all the NavigatorItems in the PublicViewMap, but this function seems to ignore sections and elevations and all other than above mentioned types. What other parameters of nav_item need to be set to get all the NavigatorItems?&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 21:58:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APINavigator-SearchNavigatorItemID-question/m-p/357768#M1171</guid>
      <dc:creator>SzokeFerenc</dc:creator>
      <dc:date>2022-10-02T21:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: APINavigator_SearchNavigatorItemID question</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APINavigator-SearchNavigatorItemID-question/m-p/358937#M1172</link>
      <description>&lt;P&gt;Same here on both AC23 and AC26. No idea if that's intended (for whatever seemingly undocumented reason) or a bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: FYI, I've worked around this issue by parsing the entire navigator map tree&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 20:42:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APINavigator-SearchNavigatorItemID-question/m-p/358937#M1172</guid>
      <dc:creator>gustavorochakv</dc:creator>
      <dc:date>2022-10-21T20:42:29Z</dc:date>
    </item>
  </channel>
</rss>

