Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all articles
Browse latest Browse all 564

APIERR_MEMFULL LibPart_Register

$
0
0
Author:Akos Somorjai
Posted: Wed Oct 14, 2015 12:54 pm (GMT+1)


Rinovo wrote:
Thanks Akos!

I was trying to add library part to embedded library.
I guess only way would be to make new one through creating new one.


Yeah, you can create one directly in the embedded library:

Code:

   IO::Location file;
   GS::UniString str;
   GetIndString (str, 32552, 1);  // default name
   ACAPI_Interface (APIIo_GetLastValidEmbeddedLPNameID, &str, &file);

   // Save As dialog
   bool bff = false;
   bool retIsOk;
   ACAPI_Interface (APIIo_SaveLibPartFileDialogID, &retIsOk, &file, &bff, &str);

   if (retIsOk) {
      // Create the libpart
      API_LibPart libPart;
      CreateLibpart (libPart, file);
   }


You can skip the save dialog, just use the location from the APIIo_GetLastValidEmbeddedLPNameID call (but don't forget to replace the last local name).

Best, Akos[/code]


Viewing all articles
Browse latest Browse all 564

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>