jrice174
Civil/Environmental
- Nov 8, 2004
- 129
I'm trying to center a string of text in a rectangle. When I add the text it goes almost where I want it, but then when I add the alignment properties, it throws it down in the corner. What am I doing wrong?
Pt1(0) = PWidth / 2: Pt1(1) = Hieght / 2
Set objText = ThisDrawing.ModelSpace.AddText(Name, Pt1, 1)
objText.InsertionPoint = Pt1
objText.Alignment = acAlignmentMiddleCenter
Pt1(0) = PWidth / 2: Pt1(1) = Hieght / 2
Set objText = ThisDrawing.ModelSpace.AddText(Name, Pt1, 1)
objText.InsertionPoint = Pt1
objText.Alignment = acAlignmentMiddleCenter