kk=ThisDrawing.ModelSpace.AddText( i, ThisDrawing.Utility.GetPoint, 5)
kk.Alignment = acAlignmentMiddleCenter 也不行.
Sub tt()<BR>On Error GoTo ErrHandle<BR>Dim pText As AcadText, i, pnt<BR>i = 0<BR>Do While 1<BR>i = i + 1<BR>pnt = ThisDrawing.Utility.GetPoint<BR>Set pText = ThisDrawing.ModelSpace.AddText(i, pnt, 5)<BR>pText.Alignment = acAlignmentMiddleCenter<BR>pText.TextAlignmentPoint = pnt<BR>ThisDrawing.ModelSpace.AddCircle pnt, 6<BR>Loop<BR>ErrHandle:<BR>End Sub<BR> 有这么好的版主,我服了.
页:
1
[2]