working on temp ProMdl
Hey,
I have a workflow which basically is:
- open creo
- load/create ProMdl
- do some regular stuff and save ProMdl.
- do some other stuff I do not want to be saved.
- close creo
My Idea is to call "ProMdlSave()" after I am done with my regular stuff. Then clear the session with "ProMdlErase()", "ProMdlRetrieve(saved model)" and "ProObjectwindowCreate(..)", "ProMdlDisplay" and "ProWindowActivate".
The Problem with that is, that I do not know how to change my Current working Directory. I am trying:
ProMdldata modelData;
status = ProMdlDataGet(mdl, &modelData);
wcsncat(modelData.path, modelData.name, PRO_PATH_SIZE);
ProDirectoryChange((ProPath)modelData.path);
But the File I am working on is stored on a network drive and I think this is causing the error... Does someone has an idea on how to get the correct path. Or create a temp copy of my mdl?
best regards and thanks in adavance
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
