AFT Blog

Welcome to the Applied Flow Technology Blog where you will find the latest news and training on how to use AFT Fathom, AFT Arrow, AFT Impulse, AFT xStream and other AFT software products.
Font size: +
4 minutes reading time (854 words)

Restore Your Sanity, and Your Corrupted Model Files

Users occasionally contact AFT saying they have lost their model files or cannot open them. Can you imagine spending hours, days, or months building models, and all of a sudden, the progress and work is gone?! If it happens right before a deadline, the engineer will most likely have a minor panic attack, and feelings of anger, depression, or hopelessness. 

Thankfully AFT Fathom, AFT Arrow, AFT Impulse, or AFT xStream automatically creates backup versions of your model. This blog will explain how to tell if a model file is corrupted, how to retrieve and restore a previous version of the file, and two ways you can prevent this hassle in the future.

What is a corrupted model file?

The most common way to tell if a model file is "corrupted" is an error message that says "An error occurred reading the file into AFT Fathom. Can't find [TOOLBOX PREFERENCES] heading." 

You may see multiple of these messages after pressing OK, and the part between the brackets [ ] may say something else each time. This is indicating that the software is trying to read different sections of the file, and it is finding that there is either no data, or corrupted data. It is then showing you an error for each section of the file that the software tries to read when loading the model.

Another indicator is if the model's file size has been reduced to 0 or 1 KB. This indicates the data inside the file has been lost. You can see the file size in the Windows File Explorer:


What are the backup files (.bak extensions)?

AFT software will automatically generate backup versions of your model file each time you save. By default, these files will be located in the same directory where you have saved your model. These files have a specific naming convention, but generally the file extension will start with "*.bak" and end with three numbers. Newer versions of AFT software will have a fourth letter after the .bak, and it signifies which application the backup is for.

AFT Fathom.bakF-001

AFT Arrow.bakA-001

AFT Impulse.bakI-001

AFT xStream.bakX-001

The numbers signify previous versions of the model, with the 001 extension being the most recent backup. Of course, if your current model file is corrupted and you need to restore a backup, the 001 backup won't contain the most recent updates you made to the model, but it will be better than losing everything! The backups named 002 and 003 are the second and third most recent backups, respectively. Generally, you won't need to use these files unless you want to revert to even earlier state of the model file, or there is an issue with the 001 backup.

When you save a model file, the application will copy the previous version of the file into .bak001, the previous .bak001 will be copied into .bak002, and so on, creating a cascading effect. This way .bak001 is always the most up to date backup version of the model.

How to Restore a Backup File

1. Close the AFT application if it is still open.

2. In the same location as your model file, locate the file with the extension *.bak-001.

3. Create a copy of *.bak-001. This is useful in case something goes wrong, and you need to try again.

4. Rename the copied file and change the file extension to the appropriate application file extension below. Windows will prompt you to confirm the extension change; click Yes.

    • Fathom: *.fth
    • Arrow: *.aro
    • Impulse: *.imp
    • xStream: *.xtr

5. Try opening the restored file. If this didn't solve the problem, you can try the same steps with an earlier backup file, using .bak-002 or .bak-003 if they exist. However, note that doing so will revert even more changes because these are even earlier versions of the model from multiple saves prior.

Tips to Prevent File Corruption

The best way to prevent file corruption is to open, edit, and save the file locally on your PC. It is not recommended to edit and save files directly to a shared server, network drive, or cloud storage platform like Dropbox or OneDrive. 

If the connection to the network location is interrupted or cuts out while saving the model file, it could corrupt the file or cause data loss. This can be especially common on VPNs. If you need to have the file in a shared location for colleagues to access, it is recommended that you download the file to your local PC, edit/save the file locally on your machine, then upload the file afterwards.

Customize Your User Settings Related to Backups

By default, only a maximum of three backups will be kept at a time. If desired, you can change this number in Tools > User Options > Files (global) > Backup and Encoding > Number of Backup Files Created. Here, you can also choose to check the box that will automatically save your model in a specified time interval.

Predicting the Future is Hard
AFT Software Makes a Splash on Lunar Rocket ARTEMI...
 

Comments

No comments made yet. Be the first to submit a comment
Sunday, 25 February 2024
Log in

Login to your account

Username *
Password *
Remember Me

Create an account

Fields marked with an asterisk (*) are required.
Name *
Username *
Password *
Verify password *
Email *
Verify email *
Captcha *
Reload Captcha
© 1996 - 2024 Applied Flow Technology