Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
436 Views, 2 Replies

Why is Inventor 2016 Overwriting Files with a Save-As????

Hello All,

 

Can anyone tell me how i can stop my code from overwriting files or do i have to review by entire suite of programs? Partly my fault of course as i was using the oInvDoc.SaveAs that if the file exists when given the new path, it would error out in which i would catch and do some stuff to find a new part number (yes i understand, its shotty, but i program for my team to get the 80% functionality for the 20% work).

 

So now, oPart.SaveAs will overwrite good files without an error. Is there a simple way to change it back to "error out"?

 

Thanks,