Move double dimension text

Hello,

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

image

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.
Fred


DimText_Position.dyn (45.6 KB)