Book a Demo

Author Topic: Add in not visible in EA 15  (Read 5772 times)

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Add in not visible in EA 15
« on: December 17, 2019, 06:25:33 pm »
I'm trying to create an Add-In, based on the tutorial of Geert Bellekens (https://bellekens.com/2011/01/29/tutorial-create-your-first-c-enterprise-architect-add-in-in-10-minutes/).
In Visual Studio I checked that the assembly is made COM-Visible and that he is registered for COM interop.

But in regedit, when I navigate to HKEY_CURRENT_USER\Software\Sparx Systems\  I don't see any mentions of other addins (and there are). I looked into the documentation (https://sparxsystems.com/enterprise_architect_user_guide/15.0/automation/deployingaddins.html) and discovered this:

Quote
For the current user only
         [HKEY_CURRENT_USER\Software\Sparx Systems]
For multiple users on a machine
     -  Under 32-bit versions of Windows
        [HKEY_LOCAL_MACHINE\Software\Sparx Systems]
     -  Under 64-bit versions of Windows
        [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Sparx Systems]

So what dit I do:
- I created a new key EAAddins in   [HKEY_CURRENT_USER\Software\Sparx Systems] with projectname.classname as value --> no addin visible in EA
- I created a new key under [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Sparx Systems\EAAddins] with projectname.classname as value --> no addin visible in EA

I don't know why this doesn't work?


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add in not visible in EA 15
« Reply #1 on: December 17, 2019, 06:59:42 pm »
Hi Matthias,

The string should actually be [Namespace].[ClassName]. In most cases the Namespace is equal to the project name, but it doesn't have to be.
I corrected this in the article.

I think the best thing to do is to try and make my example add-in to work. If that works then you can try with your own code.

Another thing to try is the Addin Installation inspector

https://community.sparxsystems.com/community-resources/772-ea-installation-inspector

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Add in not visible in EA 15
« Reply #2 on: December 17, 2019, 07:40:32 pm »
Geert,

I changed [HKEY_CURRENT_USER\Software\Sparx Systems] and [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Sparx Systems] to the correct namespace.class, but still no addin visible in EA.

EDIT: I discovered that there's a problem with registering the DLL.
« Last Edit: December 17, 2019, 08:13:15 pm by MatthiasVDE »

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Add in not visible in EA 15
« Reply #3 on: December 17, 2019, 08:18:15 pm »
The dll is registered, and when I take a look in the EA Installation Inspector I see the Addin and the path of the dll.
But in EA, still no addin visible (I used the example from Geert).

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add in not visible in EA 15
« Reply #4 on: December 17, 2019, 08:26:46 pm »
Mathias,

If you don't see it in the "manage add-ins" window (after restarting EA) then you didn't create the registry key correctly.

If you create even a key with a nonsense name, and don't have any dll at all, it will be listed in this window (showing an error saying that it can't load the add-in)

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Add in not visible in EA 15
« Reply #5 on: December 17, 2019, 08:31:49 pm »
The addin is visible in the "Manage Add-Ins" window. But right clicking on a package (as described in your tutorial) doesn't work.
I use EA 15, could it have anything to do with that?

EDIT: It's behind the 'Specialize' menu item in the context menu, I didn't know this.

Problem solved!
« Last Edit: December 17, 2019, 08:42:34 pm by MatthiasVDE »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add in not visible in EA 15
« Reply #6 on: December 17, 2019, 08:42:26 pm »
If you see the add-in in the manage add-ins window, and there are no errors, that means that the registration and configuration is OK.

Now it's just a matter of debugging to figure out what else it wrong.

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Add in not visible in EA 15
« Reply #7 on: December 17, 2019, 09:24:24 pm »
If you see the add-in in the manage add-ins window, and there are no errors, that means that the registration and configuration is OK.

Now it's just a matter of debugging to figure out what else it wrong.

Geert

It's behind the 'Specialize' menu item in the context menu, I didn't know this.

Problem solved!