-
Hello everybody, what I asked is that while creating nodes in diagram, each node must be located in a grid which is pre-defined (or in other way) in the diagram, and the node can get its coordinates of the grid where it is located. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I'm not sure this is what you're asking for, but there is support for enabling a "snap to grid" behavior. If your question is more "can I enforce the position where a node should be displayed depending on some properties in my semantic model", then no. For normal Sirius diagrams the position (and size) of a node on the canvas (or relative position inside its parent container) are considered purely graphical information with no relation to the semantic data. The only exception is for sequence diagrams which do have some very specific rules and constraints enforced between the relative position of elements on the diagram and the underlying semantic model. |
Beta Was this translation helpful? Give feedback.
Hi,
I'm not sure this is what you're asking for, but there is support for enabling a "snap to grid" behavior.
Click on the diagram's background and in the Properties view this can be configured in the "Rulers & Grid" tab:
If your question is more "can I enforce the position where a node should be displayed depending on some properties in my semantic model", then no. For normal Sirius diagrams the position (and size) of a node on the canvas (or relative position inside its parent container) are considered purely graphical information with no relation to the semantic data. The only exception is for sequence diagrams which do have some very specific rules and constraints enforced between th…