AddTorus Пример |
Sub Example_AddTorus() ' Этот пример создает тор в пространстве модели. Dim torusObj As Acad3DSolid Dim centerPoint(0 To 2) As Double Dim torusRadius As Double Dim tubeRadius As Double ' Определите тор centerPoint(0) = 5: centerPoint(1) = 5: centerPoint(2) = 0 torusRadius = 15 tubeRadius = 5 ' Создайте тор Set torusObj = ThisDrawing.ModelSpace.AddTorus(centerPoint, torusRadius, tubeRadius) ' Измените направление рассмотрения области просмотра Dim NewDirection(0 To 2) As Double NewDirection(0) = -1: NewDirection(1) = -1: NewDirection(2) = 1 ThisDrawing.ActiveViewport.direction = NewDirection ThisDrawing.ActiveViewport = ThisDrawing.ActiveViewport ZoomAll End Sub