status = ProWstringCompare(mdlName, drawingName, PRO_VALUE_UNUSED, &compResult); if (compResult != 0) { status = ProDirectoryChange(drawingPath); status = ProMdlRetrieve(mdlName, PRO_MDL_DRAWING, &tmpMdl); if (status != PRO_TK_NO_ERROR) { status = ProMdlRename(drawing, mdlName); status = ProMdlSave(drawing); } status = ProDirectoryChange(currentPath); }