1-800-975-iCAD
9:00am to 5:00pm Pacific Time
AddSphere method example
AddSphere method example
Private Sub AddSphereExample()
'This example adds a sphere to the drawing.
' It then zooms to the extents of the drawing.
Dim myDoc As progeCAD.Document
Dim sphereObj As progeCAD.PolygonMesh
Dim pt As Point
Set myDoc = ActiveDocument
Set pt = Library.CreatePoint(4, 4, 0)
Set sphereObj = ThisDocument.ModelSpace.AddSphere(pt, 5)
sphereObj.Update
ThisDocument.ActiveViewport.ZoomExtents
End Sub
|
|
|