Bit more information. I know abotu the show duplicate tags option from the following URL
http://www.sparxsystems.com/uml_tool_guide/modeling_tool_features/showduplicatetags.htmHow ever even for the above example and using the EA sample code as a basis i can not see these values though the script. I have enclosed the script below
!INC Local Scripts.EAConstants-JScript
/*
* Examples of how to access and use element extras - such as scenarios, constraints
* and requirements.
*
* NOTE: Requires an element to be selected in the Project Browser
*
* Related APIs
* =================================================================================
* Element API -
http://www.sparxsystems.com.au/EAUserGuide/index.html?element2.htm */
function ElementExtrasExample()
{
// Show the script output window
Repository.EnsureOutputVisible( "Script" );
// Get the currently selected element in the tree to work on
var theElement as EA.Element;
theElement = Repository.GetTreeSelectedObject();
if ( theElement != null && theElement.ObjectType == otElement )
{
var addedAttributeID = 0;
Session.Output( "JScript ELEMENT EXTRAS EXAMPLE" );
Session.Output( "=======================================" );
Session.Output( "Working on element '" + theElement.Name + "' (Type=" + theElement.Type +
", ID=" + theElement.ElementID + ")" );
// ==================================================
// MANAGE ELEMENT TAGGED VALUES
// ==================================================
Session.Output( "Tagged Values" );
// Add a new tag
var tags as EA.Collection;
tags = theElement.TaggedValuesEX;
// List all element tag
for ( var i = 0 ; i < tags.Count ; i++ )
{
var currentTag as EA.TaggedValue;
currentTag = tags.GetAt( i );
Session.Output( " Tag Name: " + currentTag.Name +" Tag Value: " + currentTag.Value );
// Delete the tagged value that we just added
}
tags = null;
}
}
ElementExtrasExample();