Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Enterprise-Architect store user defined Scripts?

I'm going to create a script for my EA-Project. To do so, it is necessary to create a new "group" and within this group you can add own scripts.

The local scripts I have found on my harddisk. They reside in EA-install-dir/Scritps.

But where can I find my additional scripts?

like image 994
tria1312 Avatar asked Feb 10 '26 23:02

tria1312


2 Answers

EA scripts are stored in one of three locations: in the installation directory, in the project itself and in MDG Technologies.

Scripts in the installation directory are available in any project you access from that machine. They show up in the EA script group Local Scripts.

Scripts can also be stored in the project itself. Each EA project is a database (an .EAP file simply contains a JET database), and scripts stored in the project are found in the table t_scripts, as are the script groups you define to organize them.

This is where scripts land when you create them, and while you can export a script from the editor to a file (Save As), AFAIK there is no way to import them in the corresponding manner. But you don't need to save the script to a file in order to use it, and EA doesn't use the file, only the entry in t_scripts.

Scripts from t_scripts are only available in the project where they are stored. If that project is accessed by several users (.EAP file on network drive or external database repository), they can all use the scripts regardless of the machine from which they access the project.

Finally, scripts can be included in an MDG Technology, which is EA's way of bundling adaptations that are primarily modelling-related (eg UML profiles and document templates, as opposed to Add-Ins which contain arbitrary functionality). When deployed, an MDG technology consists of an XML file in which the scripts (and all other bundled adaptations) can be found.

MDG-deployed scripts are available in any EA session where you have enabled that MDG Technology (Settings - MDG Technologies), and appear in a script group with the same name as the MDG Technology. (The script group EAScriptLib is in fact an MDG Technology.) If the MDG Technology is deployed on a network drive, you can use the scripts from any machine and in any project.

like image 71
Uffe Avatar answered Feb 15 '26 11:02

Uffe


I stumbled upon this when searching for a way to easily export and import my scripts, but I found an easier way :

Project -> Data Management -> Export Reference Data... Then check "Automation scripts" in the window that appeared and click export, you'll have an xml containing your custom scripts.

To import them in another project : Project -> Data Management -> Import Reference Data...

The "Data Management" menu could be elsewhere depending on your EA version (12 here)

like image 23
Adrien Avatar answered Feb 15 '26 13:02

Adrien



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!