求助:将选择集中的2条直线倒角
求助高手:怎样将选择集内的2条直线倒角(chamfer) 用sendcommand就行了啊。 <p>使用下面命令还是不行啊?我选择集就2条直线</p><p></p><p>Sub fd() '倒角<br/> Dim returnObj As AcadEntity<br/> Dim y(1 To 3) As Double<br/> Dim ss As Variant<br/> <br/> On Error Resume Next<br/> SsetName = "au100"<br/> On Error Resume Next<br/> For i = 0 To ThisDrawing.SelectionSets.Count - 1<br/> Set SsetObj = ThisDrawing.SelectionSets.Item(i)<br/> If SsetObj.Name = "au100" Then SsetObj.Delete<br/> Next i<br/> Set SsetObj = ThisDrawing.SelectionSets.Add(SsetName)<br/> SsetObj.SelectOnScreen<br/> <br/> ThisDrawing.SendCommand "_chamfer" & vbCr & "D" & vbCr & "400" & vbCr & vbCr & SsetObj.item(0) & SsetObj.item(1) & vbCr</p><p> <br/>End Sub<br/></p> <p>要通过handent传递参数</p><p>参见</p><p><a href="http://www.mjtd.com/Develop/ArticleShow.asp?ArticleID=49">http://www.mjtd.com/Develop/ArticleShow.asp?ArticleID=49</a></p>
页:
[1]