ProCurrentWorkspaceExport - How to cleanup session before use
Hi all,
I've a Pro/Toolkit application that makes some stuff and store workspace content at the end.
Everything works fine except when a model stay in Creo session bacause ProCurrentWorkspaceExport() does'nt support this (Toolkit doc) and return a PRO_TK_E_BUSY (-38) code
I'm trying to remove all model from memory but at least one stay in session
I've tried various functions and tricks:
* ProSessionMdlList + ProMdlErase
* ProSessionMdlList + ProMdlEraseAll
* ProEventProcess() => Forbiden
* ProMdlEraseNotDisplayed()
* Start another DLL that remove objects
* Start another DLL that runs macro to erase not displayed objects
I could try to launch another Java app but not sure that it's work (I'll do that waiting your answers...)
Any idea will be appreciate 🙂
Regards,
Fred

