Sparx Systems Forum
Enterprise Architect => General Board => Topic started 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.
-
Although the value field allows some operations, the element properties available for colouring the elements are:
- Alias
- Author
- Complexity
- Difficulty
- Keyword
- Phase
- Priority
- Scope
- Status
- Stereotype
- Type
- Version
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)