Zooms to the extents of the attached drawings.
ZoomExtents( ) As Boolean
Returns True on success.
ZoomExtents zooms the display view, in or out, to match the combined extents of all the attached drawings in the drawing set. Extents define the smallest rectangle that encompasses all the objects in a drawing or set of drawings.
This one-line example assumes you altered queried objects of a drawing. For sample code for querying a drawing, click . Add the following line of code just before End Sub to display queried objects.
prj.DrawingSet.ZoomExtents
Use ThisDrawing.Application.ZoomExtents instead of prj.DrawingSet.ZoomExtents to display queried objects and restore the state of the command line, so you can enter commands.