Author:Akos Somorjai
Posted: Wed Oct 14, 2015 12:54 pm (GMT+1)
Yeah, you can create one directly in the embedded library:
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]
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]