Returns a table array of the files matching the search criteria.
PDMFileSearch([Search Text], [Folder], [Refresh])
Where:
Search Text is a string that contains the search criteria (use % as a wildcard).
Folder (optional) is the full path to a folder in the local view of the vault from which to start the search (Leave blank to search the entire vault).
Refresh (optional) is a value that refreshes the data when changed.
Rule | Result | Meaning |
---|---|---|
PDMFileSearch("MainDriveAssembly.sldasm", "C:\PDMVault\Assemblies", DWConstantRefreshNow) | {"Name","FilePath","Version","State","Checked Out To","Checked Out On"; "MainDriveAssembly.sldasm","C:\PDMVaultStandardFiles","2","Checked In","",""} | Returns a table array of results based on searching for 'MainDriveAssembly.sldasm' in the folder 'C:\PDMVault\Assemblies' and its subfolders. The search will be refreshed whenever the value of the constant 'RefreshNow' changes. |
Using a Wildcard
This function allows for a wildcard (%).
A wildcard is used to replace or represent one or more characters.
For Example:
PDMFileSearch("%DriveWorks 123%")
will return a table array of information for all files that contain DriveWorks 123 any where within the string, such as: