Author Topic: Include common scripts in Model Based Addins?  (Read 5296 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Include common scripts in Model Based Addins?
« on: October 14, 2019, 06:15:46 pm »
Hello,
I'm investigating the new EA 15 Model Based addin feature as it would sort an issue I have with >20 VBScripts installed on a client's project. In the current situation, we used prefixes to differentiate e.g. a QA script from an XLS one. Still the list is too long when accessing the available script.
I'm interested in the model based addins as it provides a way to have menus & submenus whilst it's shared by all users (no local addin installation required).

I created a sample project based on Sparx EAExample and Arshad's community article (https://community.sparxsystems.com/white-papers/1277-enterprise-architect-15-model-based-javascript-addin).

Is there a way to include an a Javascript that's stored in the Scripting view, instead of having to create classes?
Note: it would be nice to have a way to view and work on the entire class code, instead of having to select each operation or reception to update code.


« Last Edit: October 14, 2019, 06:18:48 pm by Guillaume »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


shimon

  • EA User
  • **
  • Posts: 157
  • Karma: +5/-0
    • View Profile
Re: Include common scripts in Model Based Addins?
« Reply #1 on: January 22, 2025, 01:29:58 am »
Hi,
I'm bumping this question, as I am considering making a Model addin for a client.
Is there anybody here that has implemented this?

I am interested in making some VBscripts available to all users. Is there any way that these VBscripts can be triggered from within the Javascript of the addin?

As we use a MDG Profile for this model, it might be much easier to just add the VBscripts to the MDG profile, rather than bothering with the no installation addin.

Sincerely,
Shimon

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8078
  • Karma: +118/-20
    • View Profile
Re: Include common scripts in Model Based Addins?
« Reply #2 on: January 24, 2025, 09:49:55 am »
I am interested in making some VBscripts available to all users. Is there any way that these VBscripts can be triggered from within the Javascript of the addin?
The add-ins are Javascript only, and I would recommend Javascript over VBscript for any future development.

shimon

  • EA User
  • **
  • Posts: 157
  • Karma: +5/-0
    • View Profile
Re: Include common scripts in Model Based Addins?
« Reply #3 on: January 27, 2025, 12:27:27 am »
Thanks Eve,
Shimon