Book a Demo

Author Topic: Programmatically changing matrix column/row size doesn't more objects  (Read 3210 times)

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
On a diagram displayed with the matrix feature turned on, manually dragging the size of columns or rows moves objects on the diagram to remain within the correct column/row, which is good.

I've run into the issue that I sometimes find all the columns or rows are the wrong size (usually too small, but also they can be too large with a desire to condense the diagram). I've written a script that resizes all cells to a new standard size (using an SQL update). However, this doesn't move the objects (the remain in the same physical location as they were before, now in different cells).

I suspect the answer has to be to programmatically decide the pre-modification size of all cells, repeat after modification and then programmatically move all elements. Before I go to the effort of making all those calculations is there anything that I have missed?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Programmatically changing matrix column/row size doesn't more objects
« Reply #1 on: March 18, 2021, 01:36:42 am »
Yeah, sounds about right.

Geert