AddRay Пример |
Sub Example_AddRay() ' Этот пример создает луч в пространстве модели. Dim rayObj As AcadRay Dim basePoint(0 To 2) As Double Dim SecondPoint(0 To 2) As Double ' Определите луч basePoint(0) = 3#: basePoint(1) = 3#: basePoint(2) = 0# SecondPoint(0) = 4#: SecondPoint(1) = 4#: SecondPoint(2) = 0# ' Создает объект Ray в пространстве модели Set rayObj = ThisDrawing.ModelSpace.AddRay(basePoint, SecondPoint) ZoomAll End Sub