I know this is a little old now, but I wanted to follow up. Thanks to
all who gave suggestions or offered help. This is unrelated from the
permissions problem I was having, but still something I wanted to share
because it is not real clear in the TOOLKIT documentation.
One of my problems was that I was trying to reassign
C:\\temp\\dctmcopy\\ as the new path to backup_data.path; a component
of ProMdldata backup_data. What it really wants is just
\\temp\\dctmcopy <file: \\temp\dctmcopy="> . The ProMdlBackup function
kept doing the backup back into the original directory even after I
would set the backup_data.path to C:\\temp\\dctmcopy\\, but then I did a
printout of the original value of backup_data.path and noticed that it
didn't have the drive letter on the front, and that was the clue.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
status = ProMdlDataGet(drawing, &backup_data);
strcpy (backup_dir, "\\Temp\\dctmcopy\\ ");
ProStringToWstring(w_backup_dir, backup_dir);
ProWstringCopy(w_backup_dir, backup_data.path, PRO_VALUE_UNUSED);
status = ProMdlBackup(drawing, &backup_data);
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Thanks again for the help,
John
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.