I'm writing an add-in that checks to see if the user has the current file version when they open a file in the vault. Does anyone know of some kind of hook to catch the Open command?
It's possible but not using the EPDM API. There are a few different methods but they're all pretty complex and probably not worth it. (IMHO)
If you allow these;
Show working versions of files
Read file contents
You'll see this;
We just want to make sure the user knows they don't have the current version. If someone is in a hurry or just forgets to look, the add-in will have a message box come up and let them know there's a newer version and ask if they want to get it.
There is not a hook for opening files. Suggest you submit an enhancement request for it. You can set users/groups to only work with latest versions to prevent them from opening previous. It is on the Explorer tab of the Settings for the user/group.
Remember, when the file Opened in SolidWorks is not the latest, it'll will show that in the EPDM Taskpane too.
Also,can't the users just clear their Local Cache? That's a good practice.
I'm not going to pursue this because we've got more pressing things to work on. Thanks everybody!
Retrieving data ...