Help me! Friends:
I have got the ObjectID of a Entity of DBtext,and I want to get the AlignmentPoint of the DBText.
The Codes below :
Dim ent As Entity = tm.GetObject(id, OpenMode.ForWrite, False)
Dim dbtxt As DBText= CType(ent, DBText)
the value of "dbtxt.textString" is correct
but the value of "dbtxt.AlignmentPoint.Y" is 0 !!!
I don't know Why I can't get the X,Y,Z of the AlignmentPoint
Maybe the issue is "Dim dbtxt As DBText= CType(ent, DBText)",but I don't know how to solve the problem.
please Help me!
Just notice that Position and AlignmentPoint are two different properties. Normally they display the same thing, but if you for example center a text, AlignmentPoint and Position are different. Check the AlignmentPoint of your text in the Properties panel in Autocad to see if it has a Y value different than 0.