You can use the RotateDimensionText command to rotate dimension text of specified dimensions.
Result: The text of specified dimensions rotates about the specified angle.