Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: MichaelJ on June 18, 2019, 01:56:26 am

Title: v15(1503) - Legends by class name, or package name
Post by: MichaelJ on June 18, 2019, 01:56:26 am
Hi, is it possible to create a legend key that colours elements based on properties like "Name" or "Package"?

The "Value" field allows using expression-style entries like '=xxxx' or '>yyyy', one therefore (rather naively?) expects this works similar to standard expression parsing, for example "Name=XXXX" (or if string values must be quoted, "Name='XXXX'").

Have tried to selected different "Applies To" values, such as "Applies To: Property" (thinking that expression "Name" is a property ...), without much success.
Title: Re: v15(1503) - Legends by class name, or package name
Post by: Mauricio Moya (Arquesoft) on June 21, 2019, 02:29:43 am
Although the value field allows some operations, the element properties available for colouring the elements are:

As the package, or the name are not available, you could "trick" it by creating a script that stores the name of the element or the name of the package into a tag value, then colour it by tag value. (not the best option but... it works)