Message 1 of 4
Defensive programming with Inventor Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am relatively new to the Inventor API, and I am currently working on a tool to open files using Inventor Server and obtain metadata and references from said files. For ease of use for the user, what are some defensive practices that would be best to put in place to make sure that the file does not crash on open? Some of the checks that implemented are:
- Ensuring that the file attempting to be read exists
- Making sure the user has read permissions for the files attempted to be read.
- Confirming that the file attempting to be opened is an Inventor File
- Checking the version of the file to be read to ensure that it can be opened in the current version of Inventor.
Are there any other defensive practices that you would implement, or are there any references or documentation for the best defensive practices for something like this? Thanks!