Book a Demo

Author Topic: question of embedded elements information on diagram  (Read 2890 times)

JiangangWang

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
question of embedded elements information on diagram
« on: September 11, 2023, 10:54:41 pm »
Dear Master,

I have two elements which are separated in project browser, under different packages. But on a diagram, I drag and drop them together, meaning they are bundled.
When I move the outer element, both are moved.

does anyone know how this bundle information store in database? since there is no parent/child relationship in browser, which field of which table store such information?

Thanks a lot
Wang

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: question of embedded elements information on diagram
« Reply #1 on: September 11, 2023, 11:13:00 pm »
t_diagramobjects. Its simply a matter of positions (left, right, top, bottom)

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: question of embedded elements information on diagram
« Reply #2 on: September 12, 2023, 03:38:53 am »
The magic-move-together is done by EA recognizing the position of the one being completely inside the other.

q.

JiangangWang

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: question of embedded elements information on diagram
« Reply #3 on: September 12, 2023, 10:19:01 am »
Thanks for the information.

Do you mean if the position (top, bottom, right, left) of one element is inside the position of another one, then EA recognizes they are bundled?

But the experience I have is that only when a dash-dot-matrix inside the outer element appears when I drop one element onto another, then they are bundled.
If only position is inside, but no such dash-dot-matrix appears, they should not be bundled?

Thanks.
Wang

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: question of embedded elements information on diagram
« Reply #4 on: September 12, 2023, 04:05:55 pm »
There are two concepts here

- ownership
- visual embedded

If you see the dotted edge when dropping an element onto another, that means EA will change the ownership of that element to the element you are dropping it on.

Ownership can be view in the project browser as the "child" element will be nested under the "parent" element.
Visual embedded is only a thing in the diagram.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: question of embedded elements information on diagram
« Reply #5 on: September 12, 2023, 06:20:25 pm »
The dashed rectangle is the area where EA definitely sees the inner as embedded. Not sure how this is calculated. Probably a certain fixed amount. Leave enough space and EA will recognized them as embedded pair.

q.