有问题请教!急——————
请问怎么选择图中的一条曲线,然后再与我自己画的直线用intersectwith来求交点?请教各位大侠了??? Public Sub test()
Dim obj As AcadLine
Dim a As Object
Dim pnt1(2) As Double, pnt2(2) As Double
pnt2(1) = 20
pnt2(0) = 0
Set obj = ThisDrawing.ModelSpace.AddLine(pnt1, pnt2)
ThisDrawing.Utility.GetEntity a, pnt
b = obj.IntersectWith(a, acExtendBoth)
If UBound(b) = 2 Then
Debug.Print b(0) & "," & b(1)
Else
Debug.Print "无交点"
End If
End Sub 先谢谢了!
页:
[1]