Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Thelonius on June 03, 2021, 09:28:45 am

Title: Assigning Names to Legends
Post by: Thelonius on June 03, 2021, 09:28:45 am
It would be nice to be able to define Properties for Sparx Legends so we could give each Legend a meaningful name, which could be displayed in the Project Browser.

Not being able to assign names to Legends means the only thing visible in the Project Browser is a series of graphical icons as per image below.

You can select a Legend in the Project Browser and find that Legend in the current diagram - or all diagrams - but you cannot select a Legend in a diagram and find that Legend in the Project Browser. Should work both ways.

(https://imagizer.imageshack.com/img923/6447/Yj3Iuu.jpg)
Title: Re: Assigning Names to Legends
Post by: Takeshi K on June 03, 2021, 10:25:32 am
Hello Thelonius、

You can assign legend's name by using the Properties dockable window. (Ctrl+2 to open the window on the latest version)
I agree that legends' name should be synchronized with legends' title. :)

And you can find a legend in the Browser from it in a diagram. Select a legend in a diagram and press Alt+G.

HTH,
Title: Re: Assigning Names to Legends
Post by: Paolo F Cantoni on June 03, 2021, 11:04:14 am
Hello Thelonius、

You can assign a legend's name by using the Properties dockable window. (Ctrl+2 to open the window on the latest version)
I agree that legends' name should be synchronized with legends' title. :)

And you can find a legend in the Browser from it in a diagram. Select a legend in a diagram and press Alt+G.

HTH,
Takeshi-san is, of course, correct. 

We name our Legends and place them in a special part of the repository to allow them to be re-used.

Paolo
Title: Re: Assigning Names to Legends
Post by: Thelonius on June 04, 2021, 11:55:57 am
Hmm. Thanks for your help on this.

I must be doing something wrong. I cannot assign a name in the Properties panel to a Sparx Legend in the Project Browser. I'm not talking about giving a name to the Sparx Legend on the diagram. We're not talking at cross purposes, are we? (That name does not show up in the Project Browser).

I must be misunderstanding your meaning. Correct me if I'm wrong. Thanks!

(https://imagizer.imageshack.com/img924/7907/jlyERz.jpg)
Title: Re: Assigning Names to Legends
Post by: Takeshi K on June 04, 2021, 12:01:25 pm
Hello Thelonius,

Yes, you specified the Name, but the Name is not Name of common elements :'(
The 'Name' is not stored as Name of common elements, but stored in any other place.

The Browser show the Name of common elements, so Legends in the Browser do not have name.

Please try as I posted.
Title: Re: Assigning Names to Legends
Post by: Paolo F Cantoni on June 04, 2021, 05:58:10 pm
Hello Thelonius,

Yes, you specified the Name, but the Name is not the Name of common elements :'(
The 'Name' is not stored as the Name of common elements but stored in any other place.

The Browser shows the Name of common elements, so Legends in the Browser do not have a name.

Please try as I posted.
An alternative is to edit the name directly in the browser using [F2].  You should be able to select the Legend on a diagram, use [Alt+G] to select it in the browser then change the name.

HTH,
Paolo
Title: Re: Assigning Names to Legends
Post by: Thelonius on June 15, 2021, 10:23:56 am
Thanks, Paolo - That works for me. fn key + f2 allows me to edit the name of the Legend in the Project Browser! I would never have thought to do that. Haven't seen any mention of that in the Sparx documentation. One small step for a geek like me.