Message 1 of 5
How to check if a file has been saved in Inventor 2022?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This one is a well known code snippet to check if a file has been saved in Inventor 2021 and previous versions:
if Document.FileSaveCounter > 0 then
Since the document and file now are different elements that property could not be the one we were looking for.
Fortunately it's already there the proper one which is:
Document.File.FileSaveCounter
Why? What's now the Document.FileSaveCounter? How can be Document.FileSaveCounter = 0 and no save needed?
...
This is the biggest Inventor update in many years as you, Autodesk, often says and it's having an even bigger impact on .NET API devs.
No more posts on the inventor API blogs, just the LODs migration document written one year ago, many things has changed in the updates without any mention in the release notes.