I am looking into the possibility of writing some code to manage the PDM Pro local cache for a specific group of users. PDM Pro allows to specify folders to be cached but caching entire folders for them would represent too many files. I am wondering if it would be possible to cache only parts and assemblies (*.sldprt and *.sldasm), never drawings (*.slddrw).
I have done a fair share of macros for SolidWorks and for PDM Workgroup but none at all for PDM Pro. We have been using PDM Pro only since June of this year.
Anyone has any comments on the feasibility of making a macro to get the latest version of a bunch of files?
Anyone has any pointers to get me started?
Yup. This is possible. You accomplish that with with this method:
2014 SOLIDWORKS API Help - GetFileCopy Method (IEdmEnumeratorVersion5)
Retrieves a copy of a file with the specified version from the archive and deposits it in the specified folder.
To manage the local cache:
2016 SOLIDWORKS API Help - IEdmClearLocalCache Interface
Removes specified checked-in files and folders from the local file vault view cache. Only files that are not referenced by checked-out files are cleared.
Best,
Amen
Bluebyte.biz