WPDM API - Get Documents very slow

Hallo,

i want to write a Macro to clean up my Working Directory.

For that i must get all file informations (about  12.000 files) from vault.

In the API-Example i can get the documents via:

 

Dim allDocs As PDMWorks.IPDMWDocuments

allDocs = con.Documents

It takes about 7 minutes before i can start.

I can get all the Documents individually from the vault:

 

Dim TDoc As PDMWorks.PDMWDocument

TDoc = con.GetSpecificDocument(file.Name)

But this is also very slow and takes over one hour by my files.



It is all very much slower than the SolidWorks function "My SolidWorks Workgroup PDM cleanup".



I only need the UpdateStamp, Revision and DateModified. Is there another way?



Regards,



Sascha

SolidworksApi macros