<?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 Reloading BIM Server Libraries in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Reloading-BIM-Server-Libraries/m-p/211145#M5813</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;Having trouble reloading BIM server libraries when using the sample code from the developer docs. It reloads the libraries, but instead of reloading the BIM libraries, it drops them and loads them as linked libraries at C:\Users\username\Graphisoft\TW Data\L-2\LIBC\LIBR etc.&lt;BR /&gt;&lt;BR /&gt;Is there a way to get the API to reload BIM Server libraries? The 'Reload Libraries' menu introduced into ArchiCAD in v15 seems to work properly - I assume there is an API method?&lt;BR /&gt;
&lt;PRE&gt;	API_LibrariesInfo	libInfo;
	GSErrCode			err;

	BNZeroMemory (&amp;amp;libInfo, sizeof (API_LibrariesInfo));

	if (ACAPI_Environment (APIEnv_GetLibrariesID, &amp;amp;libInfo, NULL) == NoError) {

		err = ACAPI_Automate (APIDo_LoadLibrariesID, &amp;amp;libInfo, NULL);
		if (err != NoError) {
			char msgStr[256];
			sprintf (msgStr, "Error in APIDo_LoadLibrariesID: %d", (int) err);
			ACAPI_WriteReport (msgStr, true);
		}

		for (Int32 ii = 0; ii &amp;lt; libInfo.nLib; ii++) {
			(*libInfo.locations)[ii].~Location ();
		}
		BMKillHandle (reinterpret_cast&amp;lt;GSHandle *&amp;gt; (&amp;amp;libInfo.locations));

	}&lt;/PRE&gt;
Cheers,&lt;BR /&gt;Danny&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Aug 2023 16:57:48 GMT</pubDate>
    <dc:creator>Danny Sparks-Cousins</dc:creator>
    <dc:date>2023-08-01T16:57:48Z</dc:date>
    <item>
      <title>Reloading BIM Server Libraries</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Reloading-BIM-Server-Libraries/m-p/211145#M5813</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;Having trouble reloading BIM server libraries when using the sample code from the developer docs. It reloads the libraries, but instead of reloading the BIM libraries, it drops them and loads them as linked libraries at C:\Users\username\Graphisoft\TW Data\L-2\LIBC\LIBR etc.&lt;BR /&gt;&lt;BR /&gt;Is there a way to get the API to reload BIM Server libraries? The 'Reload Libraries' menu introduced into ArchiCAD in v15 seems to work properly - I assume there is an API method?&lt;BR /&gt;
&lt;PRE&gt;	API_LibrariesInfo	libInfo;
	GSErrCode			err;

	BNZeroMemory (&amp;amp;libInfo, sizeof (API_LibrariesInfo));

	if (ACAPI_Environment (APIEnv_GetLibrariesID, &amp;amp;libInfo, NULL) == NoError) {

		err = ACAPI_Automate (APIDo_LoadLibrariesID, &amp;amp;libInfo, NULL);
		if (err != NoError) {
			char msgStr[256];
			sprintf (msgStr, "Error in APIDo_LoadLibrariesID: %d", (int) err);
			ACAPI_WriteReport (msgStr, true);
		}

		for (Int32 ii = 0; ii &amp;lt; libInfo.nLib; ii++) {
			(*libInfo.locations)[ii].~Location ();
		}
		BMKillHandle (reinterpret_cast&amp;lt;GSHandle *&amp;gt; (&amp;amp;libInfo.locations));

	}&lt;/PRE&gt;
Cheers,&lt;BR /&gt;Danny&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 16:57:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Reloading-BIM-Server-Libraries/m-p/211145#M5813</guid>
      <dc:creator>Danny Sparks-Cousins</dc:creator>
      <dc:date>2023-08-01T16:57:48Z</dc:date>
    </item>
  </channel>
</rss>

