Hi,
I have tried the same thing and unsuccessful. But if you change the text angle manually first then the program will work.
One other thing I found is if the dimension has mixture of static and non static nodes, the ACAPI_Element_Change function will remove all the static nodes.