In Autocad I'm programmatically settign the alignment of an attribute to MiddleCenter. Looking at the attribute I can see that the alignment is set properly. However, the alignment does visually update itself.
I'm able to manually update the allignment if I open the Enhanced Attribute Editor and make any change. If any property is updated, the attribute "realizes" it needs to update the alignment.
How can I make AutoCAD automatically update the alignment? Here is a current snippet of my code. In this particular instance "result" will contain 004 as a string:
attribute.TextString = result
attribute.Alignment = AcAlignment.acAlignmentMiddleCenter
attribute.Update()