求助:如何使标注文字变为水平
<P>Sub Example_TextRotation()<BR> Dim dimObj As AcadDimAligned<BR> Dim point1(0 To 2) As Double<BR> Dim point2(0 To 2) As Double<BR> Dim location(0 To 2) As Double<BR> <BR> point1(0) = 5#: point1(1) = 3#: point1(2) = 0#<BR> point2(0) = 5#: point2(1) = 11#: point2(2) = 0#<BR> location(0) = 1: location(1) = 7#: location(2) = 0#<BR> <BR> Set dimObj = ThisDrawing.ModelSpace.AddDimAligned(point1, point2, location)<BR> ZoomAll<BR> dimObj.TextRotation = 0.785<BR> dimObj.Update<BR> <BR>End Sub</P><P>利用TextRotation属性可以改变标注文字的旋转角度,但是如何把上面程序中的标注文字变为水平。请高手帮助解决!!</P> 改变标注式样 Public dimobj As AcadDimRotated '定义线性标注<BR>Set dimobj = blockObject.AddDimRotated(Pt21, Pt24, Pt38, Pi / 2) '垂直标注<BR>Set dimobj = blockObject.AddDimRotated(Pt21, Pt24, Pt38, 0) '水平标注
页:
[1]