How to search for every file owned by any user in Workgroup

EmailFacebookLinkedInTwitterShare

Recently a customer asked me to write a routine to release ownership of every file in his SOLIDWORKS Workgroup PDM vault. I thought finding the files would be rather simple until I realized Workgroup’s PDMWSearchOptions (Workgroup’s API search function) does not support wildcard characters. While contemplating harakiri, I finally came up with this search criteria idea: objSearch.IgnoreCase = True objSearch.SearchCriteria.AddCriteria pdmwOr, pdmwOwner, “”, pdmwContains, “a” objSearch.SearchCriteria.AddCriteria pdmwOr, pdmwOwner, “”, pdmwContains, “e” objSearch.SearchCriteria.AddCriteria pdmwOr, pdmwOwner, “”, pdmwContains, “i” objSearch.SearchCriteria.AddCriteria pdmwOr, pdmwOwner, […]

Read More