In this tutorial, we explain the steps to create a local view file (.CVS) for both SOLIDWORKS PDM Professional and SOLIDWORKS PDM Standard. This is an extremely useful tool for distributing and automating the creation of local views when setting up new PDM clients by providing a (nearly) one-click alternative to the traditional View Setup Wizard.
To begin with, when would we use the .CVS file above the traditional View Setup Wizard? Both methods ultimately result in a local view that enables users to access the contents of their vault. One of the primary benefits of the .CVS above that of the View Setup Wizard is its ability to circumvent common permissions errors that can pop up during the View Setup Wizard.
The Local View Setup Wizard is nothing more than a registry edit that tells the PDM Client that a particular folder has been set as the local view and to use the appropriate PDM File Explorer UI while inside it. The .CVS file directly creates that registry edit in place of the wizard by having a predefined Archive server selection, vault selection, and local view location built in.
However, a .CVS file does not inherently resolve connectivity issues between the server and client. Make sure that the server can be resolved across the desired ports and hostnames using the telnet test; otherwise, the local view will exist, but the user still cannot login.
Make sure the PDM Vault in question is live and accessible on the machine we are creating the CVS file on and that the currently logged-in Windows user has, at minimum, Attach Access as found on the server under Start Menu > SOLIDWORKS PDM > Archive Server Configuration > Tools > Default Settings > Security Settings.
Tip: It’s easiest to generate the CVS file on the server itself while logged on as the local Windows Administrator—it’s practically a guarantee that this user has been specified with administrative access through the built-in group membership in the Archive Server Settings.
We also need to make sure that a local view of the target vault has not yet been created on this machine, as we cannot attach to a vault when a local view of it already exists.
If necessary, right-click on the existing vault view and delete the local view.
For this example, we are going to make a local view of the vault ACME on the server TSWIN2016.
Up next, we are going to run the ViewSetup.exe application in a unique way that allows us to save it as a CVS.
Search Bar > Run> ”C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS PDM\ViewSetup.exe” /a
Note: If you installed the PDM in a different file location, then know we are specifically looking for ViewSetup.exe. If you call out to where this application lives, then the command will work. For example, here I happen to have installed a slightly different folder structure:
If prompted by User Account Control (UAC), hit Yes. From here, the steps are the same as the typical view Setup Wizard. Hit Next.
Select the desired Archive server. If necessary, use the manual option to browse for it if it does not automatically resolve the PDM server. Hit check and hit Next.
Note: Make sure the hostname is resolvable by the clients. If you are only able to resolve the IP Address of the server on the clients and not the hostname, specify the IP Address here or use a Windows host file to alias the IP Address as a hostname.
If you’re not doing this step as the local admin on the server itself, here is where you might run into the authentication step shown earlier. Go ahead and provide the necessary credentials of a Windows user/Admin with Attach Access, as mentioned previously. Once again, the benefit of a CVS is that future setups will circumvent this step entirely, so this is a great way to not have to share these credentials among the user base.
Now, here is the list of vaults available to connect to on the server. Select the vault/s that you want to be included as part of this CVS file and hit Next.
Choose the file location for this local view and whether it will be created for other local users on this machine. Hit Next.
Note: Choose a generic location like the root directory of the C Drive as shown here, as users will not be given the choice of where to place it when using this CVS, and everyone will be guaranteed to have this location.
The Summary Screen will reflect that we are now able to save our picks and clicks to a CVS. Hit Finish and Save this to a File.
Now we have a CVS! Feel free to store this file in a shared location for easy access or even attach it to an email to distribute it amongst your team.
First, ensure that the CVS file has been copied to the client machine and the PDM Client software has already been installed, but no local view is created. If local views or other .CVS file have been used before, double-click on the CVS file to execute it and proceed to.
Right-click on the CVS file, select Open with... and when prompted, click Try Another App on this PC.
Next, choose the option Look for another app on this PC. Browse to the location of the PDM Client installation folder on the client machine and select the default program as the ViewSetup.exe application. By default, it’s most likely here: “C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS PDM\ViewSetup.exe”.
The CVS icon will now be the SOLIDWORKS PDM logo.
Now, double-click to run the CVS file and hit Finish! And that’s it! A local view has now been created. Feel free to login with your ordinary user credentials.
A CVS file is editable. All you need to do is open it in a text editor like Notepad or equivalent.
Here, we can change the Parameters of the CVS file to run for different vaults or server names as necessary for different scenarios.
I hope you found this tutorial helpful. Learn more about SOLIDWORKS PDM below.
Editor's Note: This article was originally published in October 2022 and has been updated for accuracy and comprehensiveness.
Updating Data Cards with XML Import for SOLIDWORKS PDM Professional
Creating a .CVS file: SOLIDWORKS PDM Tutorial
Modify Your Quick Search Variable List in SOLIDWORKS PDM
SOLIDWORKS PDM Copying a Value from the Folder into a File’s Properties
How to Set Up Dynamically-controlled Card Lists in SOLIDWORKS PDM
About Miguel de Villa
Miguel de Villa is a SOLIDWORKS Elite Applications Engineer with a B.S. in Mechanical Engineering from the University of California, San Diego. He’s been working at GoEngineer since 2017 helping customers with all their SOLIDWORKS, Simulation and PDM needs. In his free time he enjoys working with his 3D printer, playing video games and building model kits.
Get our wide array of technical resources delivered right to your inbox.
Unsubscribe at any time.