C# how can I code and controll where to put the 2D dimensions on 2D drawings?

Hi guyz,

     How can I code and controll where to put the 2D dimensions on 2D drawings?

     Example I want it to put in the middle or left or right

SolidworksApi macros