cancel
Showing results for 
Search instead for 
Did you mean: 

Rewrite a part file

Creator
Creator

Hello everyone!

 

I'm using the following command to save a file:

workPart.SaveAs("...");

But if the file already exists it throws an exeption. Is it possible to rewrite a file? Thank you!

 

Regards.

1 REPLY

Re: Rewrite a part file

Phenom
Phenom

If you want to "overwrite" an existing file you will have to check if the file with the desired name already exists and if so, delete it (or rename it, or move it, etc). Now perform the save-as operation.