Move double dimension text


I’ve build a script to move dimension texts sideways if the are too wide to fit between the vertical lines.


It works fine on a single text. Unfortunately double texts also move sideways, but in the same direction.
I can determine whether it’s a single ore double by using [Dimension.NumberOfSegments].

Is there a way to select and move the dimension texts separately in opposite directions ?

Any help is welcome.

DimText_Position.dyn (45.6 KB)