Dimension text position/ how can I rotate a vector using the API?

Yes you can find some further development in the post https://forum.dynamobim.com/t/automatic-replacement-of-overlapping-dimension-text/52209/5

Its not perfect yest but works.