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
- Navigate to the erwinSpy.NET\bin folder in the installation directory.
- Copy the add-in component to the erwinSpy.NET\bin folder.
- 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
- 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:
- Create a VB.NET library project in Visual Studio 2013.
- Add a COM template class.
- Right-click on Project and select Add, Component, COM class.
- Copy the RegisterFunction, UnregisterFunction, and GetSubKeyNmae function from erwinSpy.vb in erwinSpy_AddIn.NET project to the COM template class.
- Add your public function which can be shared with other users.
The VB.NET library is now COM callable.
Copyright © 2018 erwin, Inc.
All rights reserved.
|
|