AcDbAttribute::setPosition() function doesn't seem to function properly
Published date: 2008-08-14
I use following codes to set attribute postion
However the attribute text shows on origin st the beginning. when I move the blockreference a little bit the attrbute text comes back to the block center.
I understand what kind of problem that you're having. It has something to do
with the order of setting the AcDbAttribute members.
It is to my knowledge that you must use setAlignmentPoint() function AFTER
setPosition(), setHorizontalMode() and setVerticalMode() functions because the
alignmentPoint is relative to the other settings.
The following code snippet demonstrated how it works in that order.