Book a Demo

Author Topic: All Addins are disabled when I start EA as app in C#-Project.  (Read 4270 times)

chrissO

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Hello,

for test purpose I start EA as app.

            App app = new App();
            app.Repository.OpenFile("test.eap");
            app.Visible = true;

Why are all Addins on disabled Status in the Extend ->Manage->Add-Ins-Window and no Addin-Menu exists? How can I enable them?
When I start EA via double-Click all Addins are enabled in the  Extend ->Manage->Add-Ins-Window, the Addin-Menus exist, the Addins can be controlled/started via Addin-Menu.

I must missing something, but what?

Any help or advice is welcome.

Chris

Addition to the problem description:

If I click on  Extend ->Manage->Add-Ins-Window the following happens: The Addin (extra input mask) shows shortly up and is closed immediatly. Status of the addin is still disabled.
« Last Edit: July 30, 2018, 09:36:54 pm by chrissO »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: All Addins are disabled when I start EA as app in C#-Project.
« Reply #1 on: July 30, 2018, 05:55:39 pm »
Which EA? Which OS? V12/XP runs normally.
q.

chrissO

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: All Addins are disabled when I start EA as app in C#-Project.
« Reply #2 on: July 30, 2018, 06:34:21 pm »
EA: V13.0.1310
OS: Windows 7 Professional

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: All Addins are disabled when I start EA as app in C#-Project.
« Reply #3 on: July 30, 2018, 11:09:39 pm »
Do you have any custom add-ins / MDG installed?

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: All Addins are disabled when I start EA as app in C#-Project.
« Reply #4 on: July 31, 2018, 09:26:03 am »
Repository Class - LoadAddins  - Loads all Add-Ins from a repository when Enterprise Architect is opened from automation.

chrissO

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: All Addins are disabled when I start EA as app in C#-Project.
« Reply #5 on: August 01, 2018, 08:09:58 pm »
Thank you!
Repository.LoadAddins() is the solution.