Register the Add-in Component

After you build the add-in component with the erwinSpy_AddIn.NET project, you must register it.

To register the add-in component

  1. Navigate to the erwinSpy.NET\bin folder in the installation directory.
  2. Copy the add-in component to the erwinSpy.NET\bin folder.
  3. Rename the add-in depending on your operating environment.
    • For a 32-bit application, rename the add-in to erwinSpy_AddIn.NET.x86.dll
    • For a 64-bit application, rename the add-in to erwinSpy_AddIn.NET.x64.dll
  4. Enter one of the following commands in the command prompt depending on your operating environment.
    • For a 32-bit application, enter register.bat 32
    • For a 64-bit application, enter register.bat 64

    The add-in component is registered.

Make a VB.NET Library COM Callable

The VB.NET library is not loaded automatically to erwin Data Modeler. You have to make the VB.NET library COM callable.

Follow these steps:

  1. Create a VB.NET library project in Visual Studio 2013.
  2. Add a COM template class.
  3. Right-click on Project and select Add, Component, COM class.
  4. Copy the RegisterFunction, UnregisterFunction, and GetSubKeyNmae function from erwinSpy.vb in erwinSpy_AddIn.NET project to the COM template class.
  5. Add your public function which can be shared with other users.

    The VB.NET library is now COM callable.