<?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 Layout ID, bug? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Layout-ID-bug/m-p/138123#M5891</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I created a subset with the following ID settings (using API):&lt;BR /&gt;
&lt;PRE&gt;subset.customNumbering = true;
subset.useUpperPrefix = false;
subset.addOwnPrefix = false;
subset.numberingStyle = API_NS_noID;&lt;/PRE&gt;
Then, I created a layout with &lt;FONT color="#808080"&gt;API_DatabaseInfo-&amp;gt;ref&lt;/FONT&gt; set to "Cust002".&lt;BR /&gt;
&lt;PRE&gt;db_info.typeID = APIWind_LayoutID;
swprintf(db_info.ref, L"Cust002");
swprintf(db_info.name, L"Test Layout");
db_info.masterLayoutUnId = iMasterLayout;
err = ACAPI_Database(APIDb_NewDatabaseID, &amp;amp;db_info, &amp;amp;parent);&lt;/PRE&gt;
But when the layout was created, the ID is empty. Also in Layout Settings dialog, 'Use Automatic Book and Subset ID assignment' is checked and 'Custom ID' is unchecked.&lt;BR /&gt;&lt;BR /&gt;Is this a bug? If not, is there another way to set the ID (custom ID) without going to navigator item?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Aug 2023 14:35:01 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2023-08-01T14:35:01Z</dc:date>
    <item>
      <title>Layout ID, bug?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Layout-ID-bug/m-p/138123#M5891</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I created a subset with the following ID settings (using API):&lt;BR /&gt;
&lt;PRE&gt;subset.customNumbering = true;
subset.useUpperPrefix = false;
subset.addOwnPrefix = false;
subset.numberingStyle = API_NS_noID;&lt;/PRE&gt;
Then, I created a layout with &lt;FONT color="#808080"&gt;API_DatabaseInfo-&amp;gt;ref&lt;/FONT&gt; set to "Cust002".&lt;BR /&gt;
&lt;PRE&gt;db_info.typeID = APIWind_LayoutID;
swprintf(db_info.ref, L"Cust002");
swprintf(db_info.name, L"Test Layout");
db_info.masterLayoutUnId = iMasterLayout;
err = ACAPI_Database(APIDb_NewDatabaseID, &amp;amp;db_info, &amp;amp;parent);&lt;/PRE&gt;
But when the layout was created, the ID is empty. Also in Layout Settings dialog, 'Use Automatic Book and Subset ID assignment' is checked and 'Custom ID' is unchecked.&lt;BR /&gt;&lt;BR /&gt;Is this a bug? If not, is there another way to set the ID (custom ID) without going to navigator item?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:35:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Layout-ID-bug/m-p/138123#M5891</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-08-01T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Layout ID, bug?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Layout-ID-bug/m-p/138124#M5892</link>
      <description>I did the following while waiting for a reply:&lt;BR /&gt;

&lt;PRE&gt;API_NavigatorItem new_item;
BNZeroMemory(&amp;amp;new_item, sizeof(API_NavigatorItem));
new_item.mapId = mItemData.mapId;
API_Guid guid = item.guid;
mErr = ACAPI_Environment(APIEnv_GetNavigatorItemID, &amp;amp;guid, &amp;amp;new_item); errln = __LINE__;
if (mErr != NoError) { /* error handle */ }

API_DatabaseUnId db_unid = item.db.databaseUnId;
API_LayoutInfo layout_info;
mErr = ACAPI_Environment(APIEnv_GetLayoutSetsID, &amp;amp;layout_info, &amp;amp;db_unid);
if (mErr != NoError) { /* error handle */ }
layout_info.customLayoutNumbering = true;
sprintf(layout_info.customLayoutNumber, iUiid);

mErr = ACAPI_Environment(APIEnv_ChangeLayoutSetsID, &amp;amp;layout_info, &amp;amp;db_unid); errln = __LINE__;
if (mErr != NoError) { /* error handle */ }&lt;/PRE&gt;

This will modify the uiid of the layout.</description>
      <pubDate>Tue, 25 Feb 2014 02:58:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Layout-ID-bug/m-p/138124#M5892</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2014-02-25T02:58:59Z</dc:date>
    </item>
  </channel>
</rss>

