Exemplo n.º 1
0
 /// <summary>
 /// Zooms to all entities' extents.
 /// </summary>
 public static void ZoomExtents()
 {
     if (HostApplicationServices.WorkingDatabase.TileMode) // Model space
     {
         Interaction.Zoom(HostApplicationServices.WorkingDatabase.Extmin, HostApplicationServices.WorkingDatabase.Extmax, new Point3d(), 1);
     }
     else // Paper space
     {
         Interaction.Zoom(new Point3d(), new Point3d(), new Point3d(), 1);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Zooms to extents.
 /// </summary>
 /// <param name="extents">The extents.</param>
 public static void ZoomView(Extents3d extents)
 {
     Interaction.Zoom(extents.MinPoint, extents.MaxPoint, new Point3d(), 1);
 }