Book a Demo

Author Topic: How to share a Model Addin  (Read 5087 times)

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
How to share a Model Addin
« 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to share a Model Addin
« Reply #1 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

Geert

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How to share a Model Addin
« Reply #2 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to share a Model Addin
« Reply #3 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

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How to share a Model Addin
« Reply #4 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to share a Model Addin
« Reply #5 on: February 18, 2020, 11:55:18 pm »
You have to select "Automation Scripts" before clicking the import button.

Geert

Arshad

  • EA User
  • **
  • Posts: 291
  • Karma: +21/-1
    • View Profile
Re: How to share a Model Addin
« Reply #6 on: February 19, 2020, 12:18:35 am »
I hope you're asking "How to distribute model add-ins" across models

  • First, As Geert suggested you need to do export
  • Then you need to make sure all the required Signal Reference Library ( Broadcast Events ) which Defines the entry points to the add-In similar to the com class in the traditional add-ins and Referencing relevant signals in the receptions are also exported to the target model

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to share a Model Addin
« Reply #7 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.

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How to share a Model Addin
« Reply #8 on: February 20, 2020, 09:01:33 pm »
Hi,

Thank you for your help.