Book a Demo

Author Topic: V13 Add-in in "category of their choice"  (Read 5597 times)

Julian O

  • EA Novice
  • *
  • Posts: 10
  • Karma: +1/-0
    • View Profile
V13 Add-in in "category of their choice"
« on: June 23, 2016, 07:53:13 pm »
In the "Release Notes for 13.0 Beta Build 1301" is following line written:

Quote
"Add-in menus can be added to the category of their choice"

And I have seen an "Add-Ins" Group in the categories "Code" and "Extend". But my Add-in always shows up in the "Extend" category. And if I interpret this line in the release notes correctly, I should be able to define where my add-in shows up, right?
So how would I do this or am I misunderstanding the release notes? I did not find anymore information's on this topic.

Also another thing. In the new version my Add-in does not work with "Alt"-shortcuts. The defined menu-strings with "-&Add-in" would not work and does not show a highlighted Key for using Alt-shortcuts. Do I need another prefix to get it to work or is this simply a bug in the new version?

Regards
Julian

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: V13 Add-in in "category of their choice"
« Reply #1 on: June 24, 2016, 09:35:10 am »
In the API section of the notes:
    . EA_GetRibbonCategory - New broadcast allowing an add-in to place its menu in a specific category of the new ribbon interface

Since I can't find it in the documentation, it takes a repository pointer and returns a string. The string should match the name of the selected category. (In English if you're using a translated version)

Julian O

  • EA Novice
  • *
  • Posts: 10
  • Karma: +1/-0
    • View Profile
Re: V13 Add-in in "category of their choice"
« Reply #2 on: June 24, 2016, 05:27:38 pm »
Oh seems like I overlooked this bit. Thank you very much. I will try it out :)

// Edit: But wait. Isn't the API in the "Interop.EA.dll"? And I checked, this dll doesn't have a new version number, so I thought nothing changed. Or are the Events handled differently and this dll is just for the Object Models?

// Edit2: Works like a charm. :) Thank you very much.
« Last Edit: June 24, 2016, 05:39:40 pm by Julian O »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: V13 Add-in in "category of their choice"
« Reply #3 on: June 27, 2016, 08:54:01 am »
Yes, as you found. Interop.EA.dll provides the methods you can call from EA. Add-in events work in the opposite way.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: V13 Add-in in "category of their choice"
« Reply #4 on: June 27, 2016, 02:36:45 pm »
And EA_GetRibbonCategory is now in the Help, and will be visible when the Help is next recompiled and released.
Best Regards, Roy