Book a Demo

Author Topic: Add-Ins loaded but no Ribbon entry! No matter what!!  (Read 10164 times)

bob

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Add-Ins loaded but no Ribbon entry! No matter what!!
« on: January 18, 2017, 02:06:41 am »
Hi guys,

I really am stuck here.... I have written an c# addin for EA12 which is working well.

Now I finally upgraded to EA13 and my Addin simply doesnt get loaded. At least I dont get a ribbon entry (no matter what i do).

I tried with public String EA_GetRibbonCategory(EA.Repository eaRepo) and without (then it should get added to Extend).


BUT ALWAYS NOTHING. My MessageBox.Show even gets executet in EA_GetRibbonCategory and EA_OnInitializeUserRules, that means that EA has a handle of my addin... But still no chance of getting my menu entry.

Any idead what i  >:(could be missing migrating my Add-In from EA12 to EA13?!  :'(




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-Ins loaded but no Ribbon entry! No matter what!!
« Reply #1 on: January 18, 2017, 02:42:06 am »
I haven't changed anything to my add-ins when moving from v12 to v13, and they all still work, but without the relevant code it's hard to see what you might be doing wrong.
But make sure you are on the latest version. There was one v13 version that had issues with the add-in menu items (don't remember which one exactly)

Especially the EA_GetMenuItems() might help

Geert

bob

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Add-Ins loaded but no Ribbon entry! No matter what!!
« Reply #2 on: January 18, 2017, 02:52:53 am »
Thanks for the quick answer. I just realized, that under "Manage Add-Ins" Visual Studio and Eclipse are not loaded. (Error - Missing (0x800401f3)).

I'm guessing that the missing Visual Studio causes my Addin to fail!? Maybe any idea how to fix that? (They werent failing to load in EA12)

Im on the latest version 1309? What do you mean EA_GetMenuItems() could help? This is for Menu only right? I need EA_GetRibbonCategory to steer my ribbon placement, or no?!
« Last Edit: January 18, 2017, 02:55:30 am by bob »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Add-Ins loaded but no Ribbon entry! No matter what!!
« Reply #3 on: January 18, 2017, 08:29:00 am »
Thanks for the quick answer. I just realized, that under "Manage Add-Ins" Visual Studio and Eclipse are not loaded. (Error - Missing (0x800401f3)).

I'm guessing that the missing Visual Studio causes my Addin to fail!? Maybe any idea how to fix that? (They werent failing to load in EA12)

Im on the latest version 1309? What do you mean EA_GetMenuItems() could help? This is for Menu only right? I need EA_GetRibbonCategory to steer my ribbon placement, or no?!
MDG Link for Visual Studio should have no impact on the loading of your add-in. Given that you've mentioned that a message box is called, that shouldn't be the problem.

EA_GetRibbonCategory is used to place the button that shows your menu. EA_GetMenuItems is still needed to determine the name of that top level button and its contents.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Add-Ins loaded but no Ribbon entry! No matter what!!
« Reply #4 on: January 18, 2017, 10:21:18 am »
What are the strings you are returning for your menu items (particularly the root menu)?  Do any of them contain a hyphen at the beginning (indicating a submenu) followed by one or more spaces?

For example: We had a report from another user who was returning a string like "- My Menu" for their root menu.  For some reason the space following the hyphen was getting stripped by EA, which then failed on later comparison, resulting in no menu items getting displayed under EA 13.  Deleting the space after the hyphen resolved the problem.

If you are still having problems, please provide a copy of the code for your EA_GetMenuItems method so we can take a closer look.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Add-Ins loaded but no Ribbon entry! No matter what!!
« Reply #5 on: January 18, 2017, 04:35:34 pm »
Hello,

often there is an issue with the registration of the Add-In DLL.

You may have a look at:
http://community.sparxsystems.com/community-resources/772-ea-installation-inspector

It's a nice tool to find registration issues with EA Add-Ins. It also contains a description of possible causes.

Kind regard,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

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-Ins loaded but no Ribbon entry! No matter what!!
« Reply #6 on: January 18, 2017, 06:10:00 pm »
Thanks for the quick answer. I just realized, that under "Manage Add-Ins" Visual Studio and Eclipse are not loaded. (Error - Missing (0x800401f3)).

I'm guessing that the missing Visual Studio causes my Addin to fail!? Maybe any idea how to fix that? (They werent failing to load in EA12)

Im on the latest version 1309? What do you mean EA_GetMenuItems() could help? This is for Menu only right? I need EA_GetRibbonCategory to steer my ribbon placement, or no?!

There is a known issue loading the add-ins when you have something as default value voor the key HK_CURRENT_USER. That should read "(value not set)", but sometimes that gets filled in with an empty string, or a space.
Deleting the value of that key may solve "Error missing" for the VS and Eclipse add-ins.

I can imagine the same might occur with HK_LOCAL_MACHINE

Geert

bob

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Add-Ins loaded but no Ribbon entry! No matter what!!
« Reply #7 on: January 18, 2017, 08:24:11 pm »
Thanks guys, I will keep on trying today and will either post my solution or further question later today for sure!  ;)