Recalculate sideLines

I'm creating blocks and then I attach sideLines to the blocks. Afterwards I'm moving the blocks in the diagram.

Since the sideLine is calculated automatically, it seems that sometimes the number of linePoints as well as their Position is not so optimal.

I wonder whether there is a method or function to Trigger a re-calculation of the sideLine to optimize the line after having moved the blocks with the endPoints.