When working offline, it is impossible to search the local cache in SOLIDWORKS PDM Vault View. With an increasing number of our customers needing to work offline, due to “Stay-at-Home” orders in the COVID-19 pandemic, I decided to make public a tool I created to search the cache. The process is simple and primitive, nevertheless, it works. It provides a way to search for files that you may have cached in your vault view while working offline.
The tool is a batch file. The batch file can be downloaded here.
Because this is a batch file, your security settings may flag it during download. For this reason, the link above contains a “.txt” file too. Also, the script itself is mentioned below. You can copy and paste the script into a text file. Rename the extension from .txt to .bat.
Right mouse click on the batch file and select “Edit”. This will open Notepad and the script will be shown.
Edit the line with the path to your Vault View as shown in blue. Keep the quotation marks as they are. Save and Close. DONE.
The script pulls all the file names and corresponding directory from the Vault View folder and sub-folders using the “dir /s” command. The “ | clip” portion puts all the info it collected into your clipboard. Once it is in your clipboard, you can paste it into notepad, which the script opens automatically for your convenience. Once it is in Notepad, all the contents are searchable by name.
When you want to search your cache, double click the batch file. And follow instructions 1-4.
When you get a few searches under your belt, you’ll find how quick it is to run it. Double click the batch file, press any key to open Notepad, Ctrl+v to paste, Ctrl+F, and search away.
:: In line below replace example path with your path to PDM Vault View. Keep quotation marks.
:: Do not edit below this line
:: Do not run against connected Vault View (for offline only)
dir /s | clip
echo ~~~~~~FILE DIRECTORIES SUCCESSFULLY COPIED TO CLIPBOARD~~~~~~
echo 1. Notepad will open automatically after pressing any key to continue.
echo 2. PASTE clipboard contents into Notepad to perform search - Ctrl+v.
echo 3. Search for file name using Ctrl+F or "Edit, Find..." in Notepad. echo 4. Search "UP" or check box "Wrap Around" in Notepad search dialog.
echo created by FCO. GoEngineer
About Francisco Guzman
Francisco Guzman is the PDM Technical Support Lead at GoEngineer, and is pursuing his degree in mechanical engineering at the University of Utah. In addition to providing guidance and support to SOLIDWORKS and SOLIDWORKS PDM customers, Francisco also provides support for DriveWorks design automation. He won the world-wide DriveWorks reseller CPD contest as the best DriveWorks AE for 2015. For fun, he designs, 3D-Prints, builds and races custom first-person-view (FPV) racing drone frames.
Get our wide array of technical resources delivered right to your inbox.
Unsubscribe at any time.