[求助]实现斜标注?
<p>怎么用程序控制标注实现斜标注?</p><p>怎样才能将标注中的竖线变成斜线???</p><p></p><p>先谢谢了</p> <p>E:\delphi设计\桥面铺装\a.dwg</p><p></p><p>怎么用程序控制标注实现斜标注?</p><p>怎样才能将标注中的竖线变成斜线???</p><p></p><p>先谢谢了</p> <p>E:\delphi设计\桥面铺装\a.jpg</p><p></p><p></p><p>怎么用程序控制标注实现斜标注?</p><p>怎样才能将标注中的竖线变成斜线???</p><p></p><p>先谢谢了</p> <p>' 创建出同dli命令创建的一样的标注 <br/>Sub AddDimRotated() <br/> Dim dimObj As AcadDimRotated <br/> Dim point1 As Variant <br/> Dim point2 As Variant <br/> Dim location As Variant <br/> Dim rotAngle As Double <br/> Dim rotAngleNunmer As Integer <br/> <br/> rotAngleNunmer = 1 <br/> <br/> With ThisDrawing.Utility <br/> point1 = (.GetPoint(, "请指定标注起始点(按Esc或Enter或左健退出):")) <br/> If IsEmpty(point1) Then Exit Sub <br/> End With <br/> <br/> With ThisDrawing.Utility <br/> point2 = (.GetPoint(, "请指定标注结束点(按Esc或Enter或左健退出):")) <br/> If IsEmpty(point2) Then Exit Sub <br/> End With <br/> <br/> With ThisDrawing.Utility <br/> location = (.GetPoint(, "请指定标注基准点(按Esc或Enter或左健退出):")) <br/> If IsEmpty(location) Then Exit Sub <br/> End With <br/> <br/> On Error Resume Next <br/> rotAngleNunmer = ThisDrawing.Utility.GetInteger(vbCrLf & "输入标注位置 [上(1)/下(2)/左(3)/右(4)]: <" & rotAngleNunmer & ">:") <br/> <br/> Select Case rotAngleNunmer <br/> Case 1, 2 <br/> rotAngle = 0 <br/> Case 3, 4 <br/> rotAngle = 90 <br/> End Select <br/> <br/> rotAngle = rotAngle * 3.141592 / 180# ' covert to Radians <br/> <br/> Set dimObj = ThisDrawing.ModelSpace.AddDimRotated(point1, point2, location, rotAngle) <br/>End Sub<img id="paperPicArea1" src="http://imgcache.qq.com/ac/b.gif" style="DISPLAY: none; POSITION: relative;" alt=""/></p> <p>实现不了,主要是标注中的竖线变成斜线</p><p></p>
页:
[1]