<?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 mapId is reset to 0 (API_UndefinedMap) [SOLVED TEMPORARILY] in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211441#M5817</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I don't know if this is a bug or intentional. Here is the code:&lt;BR /&gt;
&lt;PRE&gt;navi_map_id = API_PublisherSets;
//...
set.mapId = navi_map_id;
set.wantsExtraInfo = (navi_map_id == API_PublisherSets) ? 1 : 0;
DBPrintf("1 - set.mapId: %d (%d)", set.mapId, navi_map_id);
err = ACAPI_Environment(APIEnv_GetNavigatorSetID, &amp;amp;set, &amp;amp;i);
DBPrintf("2 - set.mapId: %d (%d)", set.mapId, navi_map_id);
&lt;/PRE&gt;
And here is the output:&lt;BR /&gt;
&lt;PRE&gt;1 - set.mapId: 5 (5)
2 - set.mapId: 0 (5)
&lt;/PRE&gt;
As you can see, the value of &lt;STRONG&gt;set.mapId&lt;/STRONG&gt; was reset to 0.&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Aug 2023 16:57:12 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2023-08-01T16:57:12Z</dc:date>
    <item>
      <title>mapId is reset to 0 (API_UndefinedMap) [SOLVED TEMPORARILY]</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211441#M5817</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I don't know if this is a bug or intentional. Here is the code:&lt;BR /&gt;
&lt;PRE&gt;navi_map_id = API_PublisherSets;
//...
set.mapId = navi_map_id;
set.wantsExtraInfo = (navi_map_id == API_PublisherSets) ? 1 : 0;
DBPrintf("1 - set.mapId: %d (%d)", set.mapId, navi_map_id);
err = ACAPI_Environment(APIEnv_GetNavigatorSetID, &amp;amp;set, &amp;amp;i);
DBPrintf("2 - set.mapId: %d (%d)", set.mapId, navi_map_id);
&lt;/PRE&gt;
And here is the output:&lt;BR /&gt;
&lt;PRE&gt;1 - set.mapId: 5 (5)
2 - set.mapId: 0 (5)
&lt;/PRE&gt;
As you can see, the value of &lt;STRONG&gt;set.mapId&lt;/STRONG&gt; was reset to 0.&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 16:57:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211441#M5817</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-08-01T16:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: mapId is reset to 0 (API_UndefinedMap)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211442#M5818</link>
      <description>Hi, &lt;BR /&gt;
 &lt;BR /&gt;
The set is a local object, so if you change it's mapId it won't affect the application's navigator set. &lt;BR /&gt;
That's why it gives you the unmodified mapId if you get the navigator set again with APIEnv_GetNavigatorSetID. &lt;BR /&gt;
 &lt;BR /&gt;
Why do you want to change the mapId? &lt;BR /&gt;
 &lt;BR /&gt;
Best Regards, &lt;BR /&gt;
Tibor</description>
      <pubDate>Wed, 13 Nov 2013 16:25:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211442#M5818</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2013-11-13T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: mapId is reset to 0 (API_UndefinedMap)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211443#M5819</link>
      <description>If my understanding is correct, &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Environment(APIEnv_GetNavigatorSetID)&lt;E&gt;&lt;/E&gt; will retrieve the information of a navigator set determined by the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;mapId&lt;E&gt;&lt;/E&gt;. But if the returned information gives me a value of 0 in the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;mapId&lt;E&gt;&lt;/E&gt; (which is &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API_UndefinedMap&lt;E&gt;&lt;/E&gt;) after I called the function, this means that the navigator set that was returned to me is undefined (or unknown).&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;Why do you want to change the mapId?&lt;/BLOCKQUOTE&gt;

I am not changing the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;mapId&lt;E&gt;&lt;/E&gt;. I just want to check and/or use the value of the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;mapId&lt;E&gt;&lt;/E&gt; after the call. But it became 0.</description>
      <pubDate>Wed, 11 Dec 2013 08:23:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211443#M5819</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2013-12-11T08:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: mapId is reset to 0 (API_UndefinedMap)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211444#M5820</link>
      <description>Hi, &lt;BR /&gt;
 &lt;BR /&gt;
I've checked that, and you're right. &lt;BR /&gt;
 &lt;BR /&gt;
ACAPI_Environment(APIEnv_GetNavigatorSetID,…) function retrieves only the following informations of the navigator: &lt;BR /&gt;
name, guid, rootGuid and path if it's exists. &lt;BR /&gt;
 &lt;BR /&gt;
Unfortunately it always sets the mapId property to 0. But the mapId is an input parameter here, so you should know it before calling the function. &lt;BR /&gt;
Anyway, we will fix this bug in the next API version, the output's mapId will be the same as the input's mapId of course. Thanks for pointing out this issue! &lt;BR /&gt;
 &lt;BR /&gt;
Regards, &lt;BR /&gt;
Tibor Lorántfy</description>
      <pubDate>Fri, 13 Dec 2013 12:13:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/mapId-is-reset-to-0-API-UndefinedMap-SOLVED-TEMPORARILY/m-p/211444#M5820</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2013-12-13T12:13:30Z</dc:date>
    </item>
  </channel>
</rss>

