Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: bITs.EA on April 07, 2016, 08:32:09 pm
-
Simple question: is it possible to save certain stereotypes in a specified package?
Eg. I've created a new stereotype "pain point" and I want to store them automatically in the "pain point package". My problem is the pain points can be created on many different locations and some will be used on different locations too. So I want 1 repository (= package) of pain points.
Is this possible in EA?
-
Not out of the box.
But you could write an add-in, or an EA-Matic (http://bellekens.com/ea-matic/) script to do that.
If you use the EA_OncontextItemModified (http://sparxsystems.com/enterprise_architect_user_guide/12.1/automation_and_scripting/ea_onnotifycontextitemmodified.html) you could move the element to the appropriate package if it has this specific stereotype.
Geert
-
Warning - I've seen problems by someone automatically moving the package of an element on those broadcasts.
In particular, it breaks things badly when modifying an element from the project browser.
-
Warning - I've seen problems by someone automatically moving the package of an element on those broadcasts.
In particular, it breaks things badly when modifying an element from the project browser.
Is that somewhere on the backlog to be fixed?
Geert