If you want just the documents from you project folder try using
Dim allDocs As PDMWorks.IPDMWDocuments
allDocs = con.Documents(ProjectName)
If i remember right this should get just the docs in on project instead of the entire vault.
SW 2014 SP03
Thanks for the answer.
Yes. This is faster if i need only one Project. But i need many Documents from Different Projects to get the information.
I have 12.000 files in my Working-Forlder. If i open this folder in the Taskpane (File-Explorer) SolidWorks only need a minute to open it and Display the File Status:
Is there an other Way to get the statuses? In the Document-Manager API i could not find anything.
If you can select the files you want to work on by document name you might use IPDMWconnection.documentlist to retrieve just the names of the files in the vault. This just takes a few seconds. You would then need to loop through the names to select the files you want and get each document using GetSpecificDocument(DocName). Looping through the file names is fast.
If it is taking an hour to get the information you need I would write the info to an Excel file and read that as an array in your program.