Dimensions text swaps above & below depending on view, can I anchor it?

Dear Rhino community,

I am trying to automatically find and solve linear dimension collisions within my drawing.
I am able to retrieve the text rectangle from a linear dimension (more or less ) but I realized the dimension text moves above and below the line depending on the view.

Is there a way to anchor the text ?

It might have to do with the “AboveLine” setting : in this case, “above” is defined globally but since my text doesn’t change orientation, I would expect “above” to be define relative to the text orientation … Any chance I can overwrite the setting (scripting on the table) ?

@dale’s solution here gets the text position according to the viewport so i’m set !