Author Topic: Parent and child arrow in Insert Related Elements  (Read 958 times)

Resistance

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Parent and child arrow in Insert Related Elements
« 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).
« Last Edit: November 15, 2018, 06:27:39 pm by Resistance »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9480
  • Karma: +266/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Parent and child arrow in Insert Related Elements
« Reply #1 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

Resistance

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Parent and child arrow in Insert Related Elements
« Reply #2 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.

qwerty

  • EA Guru
  • *****
  • Posts: 10585
  • Karma: +232/-192
  • I'm no guru at all
    • View Profile
Re: Parent and child arrow in Insert Related Elements
« Reply #3 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.

Resistance

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Parent and child arrow in Insert Related Elements
« Reply #4 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9480
  • Karma: +266/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Parent and child arrow in Insert Related Elements
« Reply #5 on: November 15, 2018, 08:05:19 pm »
If the import works correctly the generalizations will be created automatically by importing your code.

Geert

Resistance

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Parent and child arrow in Insert Related Elements
« Reply #6 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...!!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6822
  • Karma: +63/-7
    • View Profile
Re: Parent and child arrow in Insert Related Elements
« Reply #7 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.
Eve

support@sparxsystems.com