Problem
When you upgrade SOLIDWORKS and SOLIDWORKS PDM to a newer major-year version, sometimes users will experience issues with the PDM Preview tab or File History View (RMB > History > View). The Preview tab will no longer show files using eDrawings and may return an error when trying to view files if the view bitmap is not enabled. Additionally, users may be unable to view files from the View option within the History menu.
The reason the Preview tab and Viewer are not working is due to eDrawings not properly connecting with the PDM installation, and the PDM Viewer Settings are set to an incorrect or missing version of eDrawings. This article will address how to fix eDrawings issues within the PDM Preview Tab as well as how to reset the default PDM File Viewer(s) after an upgrade.
Solution 1: Associate the Correct eDrawings Connector
- Locate the correct version of eDrawings. eDrawings will default to one of two places after installation: C:\Program Files\SOLIDWORKS Corp\eDrawings or C:\Program Files\Common Files\eDrawings #### (where the #### is the installed year and/or bit version)
- If there is more than one eDrawings folder, open the folder and hover over eDrawings.exe to see the Version number. Version numbers will follow a similar numbering convention to SOLIDWORKS Version numbers. For example Version 27.#.#.# is 2019 SP# Build #.# while 24.#.#.# would be 2015 SP# Build #.#
- Register/Re-register the eDrawings Connector (eDrawingsOfficeAutomator.exe) by following the steps below:
- Use Windows Search to find Command Prompt, right-click and select Run as Administrator
Change the directory to the correct eDrawings directory by entering "cd <eDrawings directory>". Example: cd C:\Program Files\Common Files\eDrawings2019
Once the directory is changed, we will register the eModelViewer’s DLL file by entering the following command: Regsvr32 emodelview.dll and hitting Enter.
Then finish the registration of the eDrawingsOfficeAutomatro.exe using the command: edrawingofficeautomator /regserver and hitting Enter. If there are no errors, the registration has been processed.
Open the Vault View to check if the Preview Tab is working again.
Solution 2: Change Viewer Settings in PDM to the Correct Viewers
- Confirm that you have an installed and registered eDrawings Viewer. Note: eDrawings makes this process easier. See the above solution to complete the registration and Connector association process.
- Open the PDM Administration Tool (Windows Start Menu > SOLIDWORKS PDM > Administration)
- Access the Group or User you will be providing with a Viewer and open Properties using a double-click or right-click > Open. Note: Unless we change the setting at the User level, a User will inherit the Group setting.
- In the Group or User Properties, go to "Settings" at the bottom of the left-hand side.
- In the Settings dialog box, select "Viewers" at the bottom.
- Add a viewer by selecting the Add button
- Enter the extensions, separated by commas and spaces, in the extension box. Example: sldasm, sldprt, slddrw, eprt, easm, edrw, dwg, dxf, 3dxml, stl, prt, xpr, asm, prtdot, asmdot, drwdot
- Use the Browse button to navigate to the eModelViewer.exe file in the eDrawings folder located at: C:\Program Files\SOLIDWORKS Corp\eDrawings or C:\Program Files\Common Files\eDrawings #### (where the #### is the installed year and/or bit version)
- Use the Arrow button to add the %1% argument at the end of the command path.
- Add any other Viewer in the same way for File types not supported in eDrawings. Note: Please see the following SOLIDWORKS Help for more information on supported file types: Opening Files
- Add the default PDM viewer for all remaining file types by selecting Add.
- Enter * for all remaining extensions.
- Use Browse to navigate to the PDM installation and select FileViewer.exe. A common path may be C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS PDM\FileViewer.exe.
- Use the Arrow button to add the %1% argument at the end of the command path.
- Click "OK" to save and close out of Settings and then Properties.
- Test that the selected viewer works by going to History on a file and then selecting View.
For additional support, existing customers can submit a ticket or new customers can contact Hawk Ridge Systems.
Comments
Lucas,
I received this error message when trying to run the "regsvr32" command.
Article is closed for comments.