[求助]画剖面线
我打算学习画剖面线<br/> 直线我是会的,但是箭头不知道怎么处理以及转角处的转折线不知道怎么画及转角处的标签字母如何写出?最好画完后能够对箭头、转角线及标签字母可以编辑??<br/> 有没有人能提供一个大概的思路如何完成或者提供一段示例代码,非常感谢!!!!!<img src="file:///D:/我的文档/My%20Pictures/2.bmp" border="0" alt=""/> <p>这是VBA帮助里的,我改了一下,你自已看吧</p><p></p><p>Sub Example_AddLeader()<br/> ' This example creates a leader in model space.<br/> ' The leader is not attached to any annotation object<br/> ' in this example.<br/> <br/> Dim leaderObj As AcadLeader<br/> Dim points(0 To 8) As Double<br/> Dim leaderType As Integer<br/> Dim annotationObject As AcadObject<br/> Dim insertpt(2) As Double<br/> insertpt(0) = 15: insertpt(1) = 20: insertpt(2) = 0<br/> Set annotationObject = ThisDrawing.ModelSpace.AddMText(insertpt, 30, "例子")<br/> annotationObject.Height = 6<br/> <br/> points(0) = 0: points(1) = 0: points(2) = 0<br/> points(3) = 10: points(4) = 10: points(5) = 0<br/> points(6) = 20: points(7) = 10: points(8) = 0<br/> leaderType = acLineWithArrow<br/> 'Set annotationObject = Nothing<br/> <br/> ' Create the leader object in model space<br/> Set leaderObj = ThisDrawing.ModelSpace.AddLeader(points, annotationObject, leaderType)<br/> ZoomAll<br/> <br/>End Sub<br/> </p><p></p> <p>你想要的并不是<strong>剖面线,是剖切符号</strong></p><p><strong>带箭头的可以用多段线做</strong></p>
页:
[1]