Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Greg_PL on March 24, 2025, 05:12:01 am

Title: Add-In for MDG Activation
Post by: Greg_PL on March 24, 2025, 05:12:01 am
Hi,

I need to automate MDG activation (on model/repo load -> EA_FileOpen). However I'm not able to achieve it with EA namespace... Can anyone help me?

BR,
Greg
Title: Re: Add-In for MDG Activation
Post by: Eve on March 24, 2025, 11:45:16 am
That's explicitly something that we won't add to the API because the end user needs to make that decision, not some random add-in author.
Title: Re: Add-In for MDG Activation
Post by: Geert Bellekens on March 24, 2025, 05:35:26 pm
That's explicitly something that we won't add to the API because the end user needs to make that decision, not some random add-in author.
It's already in there: Repository.ActivateTechnology (string TechnologyID)

Not all add-ins are "public" addins that are downloaded and installed by random users.
Some of them are company specific add-ins that are only used at a specific company.
In that case it makes perfect sense to set the company MDG as the active one.

Geert
Title: Re: Add-In for MDG Activation
Post by: Greg_PL on March 24, 2025, 06:21:53 pm
Thank you so much Geert! That is exactly the case - I'm about to prepare org-specific add-in. I'll give it a try.

Have a great day!