Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Paul Lotz on January 28, 2009, 11:56:00 am

Title: Make association target role navigable by default
Post by: Paul Lotz on January 28, 2009, 11:56:00 am
Actually, I found the answer after a little searching, but I thought other people might be interested in the answer.

The problem: How do I make it so that when a draw a new association (e.g., from a class to an attribute class) the default is such that the target end is navigable?  (I want this to be the case for a Design Class Diagram.  I don't want this for a Domain Model Class Diagram.  I don't want to change this every time I draw an association!)

Answer: Go to Tools...Options...Links and check "Association default = source --> target" before working on a Design Class Diagram.  Return here and uncheck this before working on a Domain Model Class Diagram.

This begs the question: Should this option be a property of the diagram?  (I suggest it should.)

Paul
Title: Re: Make association target role navigable by defa
Post by: «Midnight» on January 28, 2009, 10:30:44 pm
Yes Paul, it should.

Or at least there should be the ability to set this for a diagram and have it override the global default (but for that diagram only).

Make the feature request. It seems that the few requests we've made so far have not convinced Sparx that there is enough support out here for this to be a priority.
Title: Re: Make association target role navigable by defa
Post by: Paul Lotz on January 29, 2009, 03:25:48 am
I submitted a feature request to Sparx.
Title: Re: Make association target role navigable by defa
Post by: KP on January 29, 2009, 09:14:47 am
Quote
The problem: How do I make it so that when a draw a new association (e.g., from a class to an attribute class) the default is such that the target end is navigable?
In most cases, you can use the quicklinker and select "Directed Association". This is independent of the "Association default = source --> target" option setting.
Title: Re: Make association target role navigable by defa
Post by: «Midnight» on January 29, 2009, 11:44:53 pm
Thanks Neil,

I overlooked that.

Paul (et al), you might find this a more practical technique. If you are working with profiles - MDG Technologies to be more precise - you can customize how the quicklinker works with your elements. This can include both your own stereotyped elements and connectors, as well as core UML elements and connectors.

David
Title: Re: Make association target role navigable by defa
Post by: Paul Lotz on January 30, 2009, 02:51:16 am
The Quick Linker works well.  Thanks for the tip!

Paul