‘Quick link’ feature in Enterprise Architect’s makes connector creation quicker and easier. Though quick linker simplifies the concept of creating connectors between artifacts (or) elements, the process of defining it would really consume a huge amount of time and manual efforts sometimes lead to errors. Though quick linker simplifies the concept of creating connectors between artifacts (or) elements, the process of defining it would really consume a huge amount of time and manual efforts sometimes lead to errors.
To overcome this we have created a custom script. This allows us to generate the quick linker definition quicker & easier than ever before. Please follow the below steps to create your quick linker definition with ease.
Must have a diagram (Metamodel / Blueprint) with connectors between artifacts which are required as quick links.
Steps to follow:
Create a diagram group in the scripting section
Create a J-Script below the newly create diagram group. Copy and Paste the code snippet given below
!INC Local Scripts.EAConstants-JScript
* This code has been included in the default Diagram Script template.
* If you wish to modify this template, it is located in the Config\Script Templates
* directory of your EA install path.
* Script Name: Generate Quick Linker Definition
* Author: Nabil Saleem – Sparx Systems India
* Purpose: Generate the quick linker definition from metamodel and to reuse in MDG definition
* Date: 12/07/2018
* Diagram Script main function
// Get a reference to the current diagram
var currentDiagram as EA.Diagram;
currentDiagram = Repository.GetCurrentDiagram();
Session.Output(“//Source Element Type\tSource ST filter\tTarget Element Type\tTarget ST Filter\tDiagram Filter\tNew Element Type\tNew Element ST\tNew Link Type\tNew Link ST\tNew Link Direction\tNew Link Caption\tNew Link & Element Caption\tCreate Link\tCreate Element\tDisallow Self connector\tExclusive to ST Filter + No inherit from metatype\tMenu Group\tComplexity Level\tTarget Must Be Parent\tEmbed element\tPreceeds Separator LEAF\tPreceeds Separator GROUP\tDUMMZ COLUMN”);