• progeCAD in French Language
  • progeCAD in Spanish Language
  • progeCAD in English Language
Home > Support > AddSphere method example 

AddSphere method example

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

 
DWG is the native file format for Autodesk AutoCAD®. Autodesk and AutoCAD are registered trademarks or trademarks of Autodesk, Inc. in the USA and/or other countries. progeSOFT and progeCAD are registered trademarks or trademarks of progeCAD s.r.l. in the USA and/or other countries.