File Checksum on check-in

File Checksum on check-in

mchi_topsoe
Enthusiast Enthusiast
255 Views
3 Replies
Message 1 of 4

File Checksum on check-in

mchi_topsoe
Enthusiast
Enthusiast

Using Inventor/Vault Pro 2024.

 

We have developed a custom job on job processor to generate view files (step & pdf) on check-in. But many times the users will check out files and check them in again, even though nothing has changed. In this case there should not be any need to generate a the view files once again.

 

1. Is there an out-of-the-box way to trigger if a given file has changed during check out, check in, which can be used in our job processor code to skip files that are not really modified?

 

0 Likes
Accepted solutions (1)
256 Views
3 Replies
Replies (3)
Message 2 of 4

Nick_Hall
Collaborator
Collaborator

Hi

 

My best suggestion is to use GetFilesByMasterId to get all versions of the file you are processing, and compare the Cksum of the latest version and the version previous to that

If they are different, the file has changed

 

Hope that helps

Nick

0 Likes
Message 3 of 4

mchi_topsoe
Enthusiast
Enthusiast

But in that case I would still need to get the file in vault and calculate the checksum again. I don't see the value is stored in vault.

0 Likes
Message 4 of 4

Nick_Hall
Collaborator
Collaborator
Accepted solution

It’s in the CkSum property of the file version 

 

You don’t need to download the files, just get the file versions and compare the two values of that property 

 

Nick