- 积分
- 24557
- 明经币
- 个
- 注册时间
- 2004-3-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-12-2 20:32:00
|
显示全部楼层
Sub tt1() On Error Resume Next Dim ss As AcadSelectionSet ThisDrawing.SelectionSets("Test").Delete Set ss = ThisDrawing.SelectionSets.Add("Test") Dim ft(0) As Integer, fd(0) ft(0) = 0: fd(0) = "Line" ss.SelectOnScreen ft, fd Dim i As AcadLine Dim dAngle As Double, p1, p2 For Each i In ss dAngle = i.Angle p1 = i.StartPoint p2 = i.EndPoint i.StartPoint = ThisDrawing.Utility.PolarPoint(p1, Atn(1) * 4 + dAngle, 100) i.EndPoint = ThisDrawing.Utility.PolarPoint(p2, dAngle, 100) Next i End Sub
|
|