ViewTableRecord viewTableRecord = ed.GetCurrentView();viewTableRecord.CenterPoint = new Point2d() ;viewTableRecord.Height =h;viewTableRecord.Width =w;ed.SetCurrentView(viewTableRecord);
Autodesk.AutoCAD.ApplicationServices.Application.UpdateScreen();