How to find files that are not in the EPDM vault?

Hi everyone

In EPDM, how can I find files that have not been taken into account by the vault and are therefore only in the local cache?

This concerns files created offline and occasionally a few other files for no apparent reason. They appear with a "transparent" icon (see TEST-1. SLDPRT below).

So if you have a technique, trick, by the search cards (unlikely since not in the chest...) or other, I'm interested!

Thank you.

Hello

No answer about searching for files locally, but maybe a clue, it seems that there is a possibility to automate the addition of local files to the EPDM vault, this to avoid having files locally.

This action must be enabled by the admin in the management of groups or users.

Kind regards


pdm-1.jpg
1 Like

Thank you @g.leluyer,

I don't have access to the administration tool to do tests, but it seems to me that this part allows you to refresh the local cache or empty it all or partially.

But on the other hand, if a file is not "listed" in the vault, if the first option is checked, I think that the file will not move, but will not be added to the vault either, and if the second option is checked, I fear that this file will be... suppressed:-/.

To be tested.

Information taken from our EPDM consultant, there is no solution for the moment. :-/

1 Like

Hello

I have made myself a little executable that may be able to meet your needs. This allows you to scan the contents of a directory and see for each file found locally if it has at least one version in EPDM (see IEdmEnumeratorVersion5.GetFirstVersionPosition() in the APIs). This little exe is still being tested.

The names of files that do not contain a version are written in a log file that I store on the desktop under the name rapport-UserName.log.

Kind regards


liste_fichiers_epdm.zip
1 Like

Hello

the problem is known but is not yet managed directly in the ePDM

You will find below the official answer, plus an ''unofficial'' tool to solve this problem...

S-065070

Is there an API tool that can search (scan) an Enterprise PDM file vault view for local files added in offline mode and then batch add them to the file vault?

 

There is currently no option to search over multiple folders in a file vault view and find local files that have been saved, but not yet added to the file vault database (Enhancement SPR 347231). This can be troublesome for example after working in offline mode and going online. To add a local file to the vault database you have to step into the folder where the local file is, right-click and select add to file vault.

If the folders or subfolders contain a mix of local and vault files, select only the local files in order to add them to the vault.

The integrated Enterprise PDM search tool will only return files that are added to the vault database.

The attached tool (LocalFileAdder.exe) uses the Enterprise PDM and Windows APIs to search for local files that cannot be found in the vault and allow adding them to the vault database. The added files will be marked as checked out to the logged in user. You can then use the search tool to search for checked out files and check the added files into the vault.

Note that the tool is delivered as-is with limited support. Its intended use is to show an example of what can be accomplished using the API. The complete source code is available if you wish to see how it is designed or to make your own improvements to the tool.

Depending on security settings in Windows, you may have to start the tool using the "Run as administrator" option.


utilitaire_sldw.zip

Since the 2017 version, it seems that SW has added a function to find these files: cf https://www.javelin-tech.com/blog/2016/10/solidworks-pdm-search-local-files/ 

(Nb: no luck I'm in the 2015 version...)

1 Like