Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: conan on February 18, 2020, 08:07:05 pm

Title: How to share a Model Addin
Post by: conan on February 18, 2020, 08:07:05 pm
Hi,

I had developed a basic model addin, can anyone help me how to share this addin as XML or any reference data not as eapx or eapx-XML.

Thank you
Title: Re: How to share a Model Addin
Post by: Geert Bellekens on February 18, 2020, 08:11:36 pm
A model add-in is nothing more than a script no?

In that case you can export it using Export Reference Data and then choose Automation Scripts.

If you want to filter the refdata export file then you can use this refdata splitter tool: https://github.com/GeertBellekens/EARefDataSplitter (https://github.com/GeertBellekens/EARefDataSplitter)

Geert
Title: Re: How to share a Model Addin
Post by: conan on February 18, 2020, 08:49:56 pm
Hi,

Thank you for your reply. I tried both the way you suggested. It is exported as a script as reference data. But it is not showing an import option.

Thanking you
Title: Re: How to share a Model Addin
Post by: Geert Bellekens on February 18, 2020, 09:58:44 pm
Hi,

Thank you for your reply. I tried both the way you suggested. It is exported as a script as reference data. But it is not showing an import option.

Thanking you
What do you mean by "not showing an import function"?

Import reference data menu option is located at Configure | Model | Transfer | Import Reference Data

Geert
Title: Re: How to share a Model Addin
Post by: conan on February 18, 2020, 10:40:36 pm
Hi,

Thanks for your reply,
Using Export Reference data I had exported model addin as Automation script. While I try to import this, I had called XML file but import option is hidden.

Thank you
Title: Re: How to share a Model Addin
Post by: Geert Bellekens on February 18, 2020, 11:55:18 pm
You have to select "Automation Scripts" before clicking the import button.

Geert
Title: Re: How to share a Model Addin
Post by: Arshad on February 19, 2020, 12:18:35 am
I hope you're asking "How to distribute model add-ins" across models


but in most cases model addins will be used in a shared repository and will be available for all the user who has access.

HTH
Arshad
Title: Re: How to share a Model Addin
Post by: Eve on February 19, 2020, 09:21:41 am
A model add-in is not in the reference data. It is part of the model itself and can be exported (and imported) via XMI.
Title: Re: How to share a Model Addin
Post by: conan on February 20, 2020, 09:01:33 pm
Hi,

Thank you for your help.