archimatetool / archi-scripting-plugin

jArchi - Scripting for Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
118 stars 33 forks source link

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

Open jmattsso opened 2 years ago

jmattsso commented 2 years ago

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.

Phillipus commented 2 years ago

Added to the "to do" list for investigation.

lavenderb commented 8 months ago

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