Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: MWHBS on February 13, 2023, 07:25:53 pm

Title: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on February 13, 2023, 07:25:53 pm
Hi everyone

I have a seconed suggestion, but this is more a question if such a function already exists. In some diagrams I add elements and everything looks fine. But then I gather more and more information and suddenly I need more space between the elements. In a way I would like to just stretch a canvas at a certain point and add more space vertically or horizontally. This is different from selecting each and every single item and move them to another place. And it would be great to have the opposite function as well to remove unnecessary space.

Does something like this already exist in EA? I know it from other tools and used it there a lot.

Best regards
Martin
Title: Re: Adding and removing space to and from a canvas
Post by: qwerty on February 13, 2023, 08:05:27 pm
Not really. There is a sweep function which I have ever used only when it was introduced. It sort of moves everything LRT or B depending on the main direction you move the mouse. I even dont rememeber how to start it. Ctrl-Move or Shift-Move or so...

q.
Title: Re: Adding and removing space to and from a canvas
Post by: MWHBS on February 13, 2023, 08:27:39 pm
Thanks for your suggestion. I tried both combinations, but it seems that it just grabs something like a boundary with all items in it and let me move them around (shift + move). Ctrl + seems to do a paste action. But it does not just add space between the items. Still, I will see if this helps me. And if at any time a space adding/removing tool would be implemented, it could be a great enhancement.

Thank you!
Title: Re: Adding and removing space to and from a canvas
Post by: qwerty on February 13, 2023, 10:17:35 pm
Ah, it was Alt-Move...

q.
Title: Re: Adding and removing space to and from a canvas
Post by: MWHBS on February 13, 2023, 11:01:21 pm
Hi qwerty.

Thank you very much! This is exactly what I needed and I was looking for that for quite a while. I am very new to this forum. Can I somehow mark this as solved and is there someting like an endorsement function?

Best regards
Martin
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on February 13, 2023, 11:04:46 pm
PS: Can I somehow make a visual shortcut (like a button in the UI) to use this function?
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: qwerty on February 14, 2023, 12:25:07 am
This forum is not state of the art. It's here and that's fine. But that is what can be said positively. Threads stay open and searching is more or less a PITA. Sometimes you're lucky, more often not. Google is better in finding results. No problem if you come with some issue well known. Happens everyone with EA to hit his head when entering the door. Headaches usually go away after some times.

q.
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: Takeshi K on February 14, 2023, 11:08:04 am
Hello Martin,

Just for your information, you can use this feature with only left-dragging by checking the 'Sweeper' checkbox in the Layout ribbon, Helpers panel.

HTH,
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on February 14, 2023, 06:50:19 pm
Thank you very much. Now I have even two ways to accomplish this :)
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: Mauricio Moya (Arquesoft) on February 17, 2023, 03:25:59 am
I don't know if your are talking about the same feature, but I use it in the following way: first, select the elements you want to move; then go to menu: "Layout | Tools | Diagram Layout | Converge/Diverge" and that's it
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on February 17, 2023, 04:39:29 am
It shows some similarities, but it is not the same.

Besides I can also add something to the sweeper function. It works good in a diagram with many elements arranged somewhere, but it has its shortcomings when trying in a diagram with pools. Then it does not work in the way I want, but instead it always grabs the entire pool and everything in it. But I can live with it and I am already very happy with the sweeper function.
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: Geert Bellekens on February 17, 2023, 05:06:27 am
A useful trick when working with diagrams that contain pools and lanes, is to set them to non-selectable (see context menu)

That way you can move around the contents all you want, without interfering with those pools and lanes

Geert
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on February 17, 2023, 06:39:24 pm
Cool, thanks for the advice. I will use that.
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on May 08, 2023, 10:50:25 pm
A useful trick when working with diagrams that contain pools and lanes, is to set them to non-selectable (see context menu)

That way you can move around the contents all you want, without interfering with those pools and lanes

Geert

Dear Geert

I have to ask, if there is anything else I must do. I have made the pool not selectable and still they are moved around.

Best regards
Martin
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: Geert Bellekens on May 08, 2023, 11:07:32 pm
If you set the pool non-selectable, you cannot by accident move the pool when selecting multiple elemnets to move.

Not sure if there are other ways it can be moved, but not anymore by selecting it.

Geert
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on May 09, 2023, 07:03:32 pm
Dear Geert

Thanks, but perhaps I was inprecise in my explaination. I am not selecting individual elements and try to move them, but I have a diagram with pools in it. And in these pools I have several items like tasks and and notes and so on. And when I then go to the context menu of each pool, mark it as non-selectable and then activate the sweeper tool, everything is moved including the non-selectable pools. This is confusing for me. Do you have a solution suggestion?

Best regards
Martin
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: Geert Bellekens on May 09, 2023, 07:13:22 pm
You can multiple select element by dragging the mouse starting at an empty space on your diagram.
Using Alt-Drag sortof does the same thing as the sweeper tool, but it leaves the non-selectable elements alone.

I've never actually used the sweeper tool; somehow I never really needed to I guess ???

Geert

Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on May 09, 2023, 07:22:30 pm
Dear Geert

I must be doing something wrong. I wish I could send you a demo picture here. Therefore I can only tell you that I set the pool to non-selectable and even with alt-drag it is moved for unknown reasons.

Best regards
Martin
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on May 09, 2023, 07:24:42 pm
Trying a different angle: Is it possible to somehow unlink elements from the pool they are in? Because I guess that the moved items within the pool are dragging the pool with them.
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: BobM on May 09, 2023, 07:35:38 pm
Sweeper actually moves the pool and lanes as well regardless if it is selectable or not

Easy to reproduce:
1) Make a new diagram with a pool and one or two lanes
2) Add elements to the lanes
3) Set pools and lanes as not selectable
4) Sweep
5) Sigh at the result

Knowing Sparx
If you would file a bug my guess they will say working as intended but you can always try
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: Geert Bellekens on May 09, 2023, 08:37:36 pm
Trying a different angle: Is it possible to somehow unlink elements from the pool they are in? Because I guess that the moved items within the pool are dragging the pool with them.
True, alt-dragging indeed moves the pool as well, I tried it and it seemed to work, but I must have done something wrong when testing before.

It does work with multi-selecting elements though, so that might be a workaround

Geert
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: MWHBS on May 10, 2023, 09:22:52 pm
Thanks! That is unfortunate, but at least I know that it's not me, but a lack in functionality. And do you know if an element can be unlinked from a pool?
Title: Re: SOLVED: Adding and removing space to and from a canvas
Post by: BobM on May 10, 2023, 09:39:14 pm
And do you know if an element can be unlinked from a pool?
You can just drag it out of the pool/lane/parent element in the browser window