The following code is what I use to zoom up to the entities comprising an AutoCAD "Group".
I must've gotten some help on how to do this, most likely from this board,
so I don't have an explanation on how it all works.
Just thought it might help...
private static void ZoomToPart(ObjectId[] Eids, Transaction trans, Document doc)
{
Extents3d exts =
Eids.Select(id => ((Entity)trans.GetObject(id, OpenMode.ForRead)).GeometricExtents).Aggregate(
(e1, e2) => { e1.AddExtents(e2); return e1; });
int CvId = Convert.ToInt32((Application.GetSystemVariable("CVPORT")));
using (Manager gm = doc.GraphicsManager)
using (View vw = gm.GetGsView(CvId, true))
{
vw.ZoomExtents(exts.MinPoint, exts.MaxPoint);
gm.SetViewportFromView(CvId, vw, true, true, false);
}
}