archimatetool/archi-scripting-plugin

Feature request: add methods to change z-order of visual objects

jmattsso opened this issue · 4 comments

I have created some scripts that update diagrams based on changes in the model. I ran into a situation where a newly added group would cover model elements previously added to the diagram. It seems the latest added visual object is currently always added on the top. If I want something else, I'll have to manually change the z-ordering in the diagram using Archi ui.

Feature request is to add methods "sendToBack" and "bringToFront" for visual objects in jArchi. This would be enough to cover the use cases I can currently imagine.

Added to the "to do" list for investigation.

Hi Phil, I've experienced something similar.
I often use nested Notes as visual indicators of element properties (see example below).
However,, if those elements are dragged into a nested arrangement with another container element, the z-position of the Notes goes haywire. (- so 8.10.a.a gets re-ordered to 8.10.b)
So,, as much as a z-order being a scriptable property would enable a quick repair, preservation of the existing order would fix the root cause.
(P.S. Would also be nice if the Visual Connector would become "invisible" when nested, just as relationships do :-) ).
image