<?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: Problem with BAD_DATABASE in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-BAD-DATABASE/m-p/56043#M7408</link>
    <description>&lt;BLOCKQUOTE&gt;Arunas wrote:&lt;BR /&gt;Most of the time everything works OK but from time to time I get APIERR_BADDATABASE on ACAPI_Attribute_GetNum and ACAPI_Element_GetNum.[...] What exactly can make the database &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;not proper&lt;E&gt;&lt;/E&gt; for these operations?&lt;/BLOCKQUOTE&gt;
Perhaps you need to set the active database with APIDb_ChangeCurrentDatabaseID before calling ACAPI_Element_GetNum etc?</description>
    <pubDate>Wed, 23 May 2007 19:30:06 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2007-05-23T19:30:06Z</dc:date>
    <item>
      <title>Problem with BAD_DATABASE</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-BAD-DATABASE/m-p/56042#M7407</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Basically I am working with AddOn that can synchronize layer/object configuration with external business application on APINotify_Open and APINotify_Save. &lt;BR /&gt;&lt;BR /&gt;Most of the time everything works OK but from time to time I get APIERR_BADDATABASE on ACAPI_Attribute_GetNum and ACAPI_Element_GetNum. &lt;BR /&gt;&lt;BR /&gt;Documentation provides very little information about this error. What could this error mean in this situation? What exactly can make the database &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;not proper for these operations?&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:35:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-BAD-DATABASE/m-p/56042#M7407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T08:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAD_DATABASE</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-BAD-DATABASE/m-p/56043#M7408</link>
      <description>&lt;BLOCKQUOTE&gt;Arunas wrote:&lt;BR /&gt;Most of the time everything works OK but from time to time I get APIERR_BADDATABASE on ACAPI_Attribute_GetNum and ACAPI_Element_GetNum.[...] What exactly can make the database &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;not proper&lt;E&gt;&lt;/E&gt; for these operations?&lt;/BLOCKQUOTE&gt;
Perhaps you need to set the active database with APIDb_ChangeCurrentDatabaseID before calling ACAPI_Element_GetNum etc?</description>
      <pubDate>Wed, 23 May 2007 19:30:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-with-BAD-DATABASE/m-p/56043#M7408</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2007-05-23T19:30:06Z</dc:date>
    </item>
  </channel>
</rss>

