Magazine

PDM Tip: Debugging a SolidWorks Enterprise PDM Add-in

Publié le 10 août 2009 par Clement Donzel

You can debug a SolidWorks Enterprise PDM add-in using:

  • Windows Explorer (explorer.exe)
    - or -
  • an application with a graphical user interface and a File > Open dialog (e.g., Notepad).

NOTE: Using Windows Explorer to debug the add-in has a couple of drawbacks:

  • You have to end the explorer.exe process before debugging the add-in.
  • Windows Explorer does not release the add-in when you finish debugging. You must end and restart the explorer.exe process to make changes to the add-in.

To install an add-in for debugging:

  1. Expand the vault where the add-in is to be used.
  2. Right-click Add-ins and select Debug Add-ins.
  3. In the Debug Add-ins dialog, click Add Add-in.
  4. In the Open dialog, navigate to the location of the add-in’s .dll, select the .dll, and click Open.

The add-in is added to the list of add-ins for debugging, which shows the path to the .dll and its class ID.

   5. To make the add-in available for installation by all computers connected to the vault, select the add-in, and click Remove Add-in.

To debug an add-in using Windows Explorer:

  1. In the project settings of your Microsoft Visual Studio project, set explorer.exe as the debug application.

image-1

   2. End the explorer.exe process using the Task Manager.
   3. Start debugging the add-in (press F5 in Microsoft Visual Studio) to create a new instance of Windows Explorer.
   4. Browse to a local view.

To debug an add-in using Notepad:

  1. In the project settings of your Microsoft Visual Studio project, set notepad.exe as the debug application.

image-2

   2. Start debugging the add-in (press F5 in Microsoft Visual Studio) to create a new instance of Notepad.
   3. Click File > Open and browse to a local vault view.


Retour à La Une de Logo Paperblog

A propos de l’auteur


Clement Donzel 83 partages Voir son profil
Voir son blog

l'auteur n'a pas encore renseigné son compte l'auteur n'a pas encore renseigné son compte

Dossier Paperblog