Question

Is there a way to manage multiple items at once?

For instance: can I select a few requirements from the package browser and mark them all as "approved" (potentially append to them a tag all at once) without going one by one.

So far, I was not able to locate any such option/way to do it...

Was it helpful?

Solution

Yes you can do this on a package level(for version below 13) by the following method:

Update the status of all elements in a package and its child packages using "Package Control" | "Update Package Status".

Right click on a package from project browser from context menu pick "Package Control"

By writing your own scripts you can change the status of particular elements in the model

Refer this tutorial for more tips: http://community.sparxsystems.com/tutorials/760-enterprise-architect-tips-compilation1

also check

http://community.sparxsystems.com/tutorials/770-enterprise-architect-tips-compilation-2

For EA 13 Click Package in Project Browser | Context Menu | Advanced | Update package status will work. Hope this will help you.

Regards Nabil

OTHER TIPS

I've written such a script, Set Status.vbs, that will change all selected objects on a diagram to the specified status.

Its still junky because it uses an InputBox to prompt for the desired Status. While the list of statuses is available in the InputBox you can't copy-and-paste from the dialog.

At least the default value is Approved.

The images appear to no longer exist for the tutorials in the accepted answer, but I came across this post that provides a pretty simple tutorial for changing multiple element properties that is easy to change based on your own requirements.

In case the link ever goes dead, I'll re-post it here:

  1. Open scripting.
  2. Create or open project browser group
  3. Create script "Mulit-update Alias" in that group:

(tested in EA 12 and 12.1)

!INC Local Scripts.EAConstants-JScript
!INC EAScriptLib.JScript-Dialog

/*
 * Script Name: Multielement update
 * 
 * Author: tkazimie
 * Purpose: Update alias field for muli-selected elements project browser
 * Date: 2015.10.23
 *
 * Select elements in Project Browsera, right click and choose "Scripts / Mulit-update Alias" from the context menu
 *
 *
 */
function OnProjectBrowserScript()
{
     // Get the type of element selected in the Project Browser
     var selElem as EA.Collection;

     var wart=DLGInputBox( 'New alias', 'Multi-select element update', '');

     selElem = Repository.GetTreeSelectedElements();
     for (i=0; i < selElem.Count; i++) {
           var e as EA.Element;
           e = selElem.GetAt(i);
           Session.Output('Element changed:'+e.Name);
           e.Alias = wart;
           e.Update();
           e.Refresh();
     }
}

OnProjectBrowserScript();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top