Do not use dim point( 0 to 2) as DoubleOriginally Posted by jandres
Use Dim point As Variant
If you look at the documentation on TextAlignmentPoint, you will see that it returns a Variant.
Registered forum members do not see this ad.
Hello people:
I hava a problem with extract corrdenates the a acadobject.
I have next example:
dim objTexto as AcadText
dim point( 0 to 2) as Double
point=objTexto.TextAlignmentPoint
But this is not right, anyone know make this??, thanx!!




Do not use dim point( 0 to 2) as DoubleOriginally Posted by jandres
Use Dim point As Variant
If you look at the documentation on TextAlignmentPoint, you will see that it returns a Variant.
that not problem:Originally Posted by rkmcswain
dim Point as Variant
Point = objTextoEmpalme.TextAlignmentPoint(1)
This return 0....????
![]()




Did you read all the documentation on TextAlignmentPoint ?Originally Posted by jandres
If the Alignment property is set to "acAlignmentLeft", then TextAlignmentPoint will return 0. Is this your case?
There are also other items that affect the returned value of this property. Read the "Remarks" section.
Registered forum members do not see this ad.
I not sure, but writte this after call alignamentpoint:Originally Posted by rkmcswain
objTexto.Alignment = acAlignmentRight
MsgBox objTexto.TextAlignmentPoint(0)
this return 0,thanx
Bookmarks