Author Topic: Script Library Templates  (Read 949 times)

EAButNotForGames

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Script Library Templates
« on: December 18, 2024, 08:20:19 pm »
I would like to change the template of the scripts in the script library.
But, because of the IT, I don't have excess to them.
Is there a way to change the folder EA uses for the script templates?
« Last Edit: December 18, 2024, 08:41:20 pm by EAButNotForGames »

ea0522

  • EA User
  • **
  • Posts: 134
  • Karma: +5/-0
    • View Profile
Re: Script Library Templates
« Reply #1 on: December 19, 2024, 05:44:30 pm »
It is not really possible to change the folder for EA Scripts.
You can however create your own folder and write your own (versions of) scripts.

I did this for some scripts in folder "BaatScriptLib" where I for instance changed the logging and created a new library for im/export:

Code: [Select]
!INC BaatScriptLib.BaatScript-Logging
!INC BaatScriptLib.JavaScript-ImEx

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1309
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Re: Script Library Templates
« Reply #2 on: December 21, 2024, 09:58:52 am »
Sounds like you've looked at changing the scripts where Sparx is installed to update the local scripts. For example look at the following location for JavaScripts and assuming its where you've installed sparx enterprise architect.
C:\Program Files\Sparx Systems\EA\Scripts\JavaScript.
However you need admin privileges to do that so assuming thats what you mean when you say you don't have access to them because of IT policy and as you don't have Admin Priviledges.
The other alternative is the create an MDG similar to EAScriptLib and put that file in a location that you can reference from the MDG settings dialog. You can use this technique to share script libraries across models.
Happy to help
:)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Script Library Templates
« Reply #3 on: December 21, 2024, 10:14:59 pm »
To avoid confusion for future visitors, the script templates folder is actually in C:\Program Files (x86)\Sparx Systems\EA\Config\Script Templates

I have not found a way to change that path.

Geert