Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: Resistance on November 15, 2018, 06:08:23 pm

Title: Parent and child arrow in Insert Related Elements
Post by: Resistance on November 15, 2018, 06:08:23 pm
How can configure sparx to draw arrow between parent class and it's child classes which inherited  in UML diagram?
how can show child and parent when is clicked on Insert Related Elements of selected element? (with arrow as relation).
Title: Re: Parent and child arrow in Insert Related Elements
Post by: Geert Bellekens on November 15, 2018, 06:14:02 pm
Please define "Parent" and "Child" as they may mean completely different things to different people.

If you mean nested classes, there's not much you can do except write a script that creates some kind of connector (nesting connector?) between the owner and the nested class.

Geert
Title: Re: Parent and child arrow in Insert Related Elements
Post by: Resistance on November 15, 2018, 06:37:08 pm
Please define "Parent" and "Child" as they may mean completely different things to different people.

If you mean nested classes, there's not much you can do except write a script that creates some kind of connector (nesting connector?) between the owner and the nested class.

Geert
My mean about child is classes which inherited from another class as parent.
Title: Re: Parent and child arrow in Insert Related Elements
Post by: qwerty on November 15, 2018, 07:00:42 pm
The inheritance relation is drawn whenever you have defined it as such - once you connected class and sub-class.

q.
Title: Re: Parent and child arrow in Insert Related Elements
Post by: Resistance on November 15, 2018, 07:24:49 pm
The inheritance relation is drawn whenever you have defined it as such - once you connected class and sub-class.

q.
I donn't want to connect them manually and need their relation to be detected automatically after importing my code by Sparx.
Title: Re: Parent and child arrow in Insert Related Elements
Post by: Geert Bellekens on November 15, 2018, 08:05:19 pm
If the import works correctly the generalizations will be created automatically by importing your code.

Geert
Title: Re: Parent and child arrow in Insert Related Elements
Post by: Resistance on November 17, 2018, 08:21:42 pm
If the import works correctly the generalizations will be created automatically by importing your code.

Geert
It seems import works correctly but all of inheritance relations which used in code, are not shown completely and I con't know how to fix it...!!
Title: Re: Parent and child arrow in Insert Related Elements
Post by: Eve on November 19, 2018, 10:18:17 am
Then the question becomes why doesn't your code produce the inheritance relationships. That's a question that can't be answered without a sample declaration of the superclass/subclass. Possibly also the imports/includes/file paths. We don't even know at this stage what language you are using.