Previous Topic: Using the API Sample Client

Next Topic: ERwin Spy

Register the Add-in Component

After you build the add-in component with the ErwinSpy_Addin_Sample.vbp project, you must register it.

To register the add-in component

  1. Click Add-ins, Manage on the Tools menu.

    The Add-In Manager dialog opens.

  2. Click the Add New Menu Item button on the toolbar.

    The Add New Menu Item dialog opens.

  3. Set Name to AddIn Sample, set COM ProgId to ERwinSpy_AddIn_Sample.ErwinSpy, set Function Name to Run, select Com Object in the Menu Type box, and click OK.

    The Add New Menu Item dialog closes and you are returned to the Add-In Manager dialog.

  4. Click Save.

    Your settings are saved and the Add-In Manager dialog closes.

When the sequence is executed, a new menu item is created on the Tools menu under Add-Ins. The name of the item matches the text that was typed in Name field of the Add New Menu Item dialog, which in this case is AddIn Sample. You can select this new menu item to activate the add-in sample component. The Models menu of the add-in shows the models opened in CA ERwin DM.