<?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 Current Window Title in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Current-Window-Title/m-p/288931#M2209</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I an trying to get the current window title (Windows 10 -- Archicad 25) , current floor plan. Following the example i used ACAPI_Database(APIDb_GetCurrentWindowID,...) To retrieve windowInfo but the documentation states that the title info is not filled in windowInfo and that one must then use ACAPI_Database(APIDb_GetDatabaseInfoID, ...).&lt;BR /&gt;&lt;BR /&gt;NOLUCK -- the title info is blank &lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;API_WindowInfo windowInfo;
		BNZeroMemory(&amp;amp;windowInfo, sizeof(API_WindowInfo));
		//GS::Array&amp;lt;API_DatabaseUnId&amp;gt; dbases;
		GS::GSErrCode err = ACAPI_Database(APIDb_GetCurrentWindowID, &amp;amp;windowInfo, nullptr);
		if (err)
		{
			ACAPI_WriteReport(" Error - %s", true, ErrID_To_Name(err));
		}
		else {
			API_DatabaseInfo dbPars = {};
			dbPars.databaseUnId = windowInfo.databaseUnId;
			ACAPI_Database(APIDb_GetDatabaseInfoID, &amp;amp;dbPars, nullptr);
			char msg[1024];
			sprintf(msg, " success  index - %d name - %s", dbPars.index, dbPars.name);
			ACAPI_WriteReport("Title %s", true, msg);
		}
&lt;/PRE&gt;
Thanks&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 07:24:13 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2021-09-14T07:24:13Z</dc:date>
    <item>
      <title>Current Window Title</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Current-Window-Title/m-p/288931#M2209</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I an trying to get the current window title (Windows 10 -- Archicad 25) , current floor plan. Following the example i used ACAPI_Database(APIDb_GetCurrentWindowID,...) To retrieve windowInfo but the documentation states that the title info is not filled in windowInfo and that one must then use ACAPI_Database(APIDb_GetDatabaseInfoID, ...).&lt;BR /&gt;&lt;BR /&gt;NOLUCK -- the title info is blank &lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;API_WindowInfo windowInfo;
		BNZeroMemory(&amp;amp;windowInfo, sizeof(API_WindowInfo));
		//GS::Array&amp;lt;API_DatabaseUnId&amp;gt; dbases;
		GS::GSErrCode err = ACAPI_Database(APIDb_GetCurrentWindowID, &amp;amp;windowInfo, nullptr);
		if (err)
		{
			ACAPI_WriteReport(" Error - %s", true, ErrID_To_Name(err));
		}
		else {
			API_DatabaseInfo dbPars = {};
			dbPars.databaseUnId = windowInfo.databaseUnId;
			ACAPI_Database(APIDb_GetDatabaseInfoID, &amp;amp;dbPars, nullptr);
			char msg[1024];
			sprintf(msg, " success  index - %d name - %s", dbPars.index, dbPars.name);
			ACAPI_WriteReport("Title %s", true, msg);
		}
&lt;/PRE&gt;
Thanks&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:24:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Current-Window-Title/m-p/288931#M2209</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-09-14T07:24:13Z</dc:date>
    </item>
  </channel>
</rss>

