Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: chrissO on July 30, 2018, 04:45:39 pm

Title: All Addins are disabled when I start EA as app in C#-Project.
Post by: chrissO on July 30, 2018, 04:45:39 pm
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.
Title: Re: All Addins are disabled when I start EA as app in C#-Project.
Post by: qwerty on July 30, 2018, 05:55:39 pm
Which EA? Which OS? V12/XP runs normally.
q.
Title: Re: All Addins are disabled when I start EA as app in C#-Project.
Post by: chrissO on July 30, 2018, 06:34:21 pm
EA: V13.0.1310
OS: Windows 7 Professional
Title: Re: All Addins are disabled when I start EA as app in C#-Project.
Post by: qwerty on July 30, 2018, 11:09:39 pm
Do you have any custom add-ins / MDG installed?

q.
Title: Re: All Addins are disabled when I start EA as app in C#-Project.
Post by: Eve on July 31, 2018, 09:26:03 am
Repository Class (http://www.sparxsystems.com/enterprise_architect_user_guide/14.0/automation/repository3.html) - LoadAddins  - Loads all Add-Ins from a repository when Enterprise Architect is opened from automation.
Title: Re: All Addins are disabled when I start EA as app in C#-Project.
Post by: chrissO on August 01, 2018, 08:09:58 pm
Thank you!
Repository.LoadAddins() is the solution.