Diagram Java force rerouting of the connectors

I create shapes and connect them using the defaults.

When I open the created file, I see something like this:
image.png (115.3 KB)

Once I move any one of the connectors, I see:

image.png (25.0 KB)

Which is what I want to see when I first open it, I have forced a refresh on every shape (connectors as well)
But it does not work.

I want the shapes to stay where they are, and I have set protections on all shapes.

If I set the Layout Options:

LayoutOptions options = new LayoutOptions();
visioDiagram.layout(options);

It moves some of the shapes, but not all, and it breaks the object grouping.

As well I find these two settings seem to do the same thing:

pageLayout.getLineToLineX().setValue(2.0);
pageLayout.getLineToLineY().setValue(2.0);

Versus

pageLayout.getLineJumpFactorX().setValue(4.5);
pageLayout.getLineJumpFactorY().setValue(4.5);

What i want to set is the minimum distance between the connector lines and the shape object.

What should I do?

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

  Issue ID(s): DIAGRAMJAVA-51075

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.