设置CAD显示窗体

AcDbViewTableRecord view;
AcGePoint3d max = acdbHostApplicationServices()->workingDatabase()->extmax(),
min = acdbHostApplicationServices()->workingDatabase()->extmin();
view.setCenterPoint(AcGePoint2d(ptInsert.x, ptInsert.y));
view.setHeight(max.y - min.y);
view.setWidth(max.x - min.x);
acedSetCurrentView(&view, NULL);
acdbHostApplicationServices()->workingDatabase()->updateExt(TRUE);

posted @ 2016-10-25 15:56  xzh1993  阅读(507)  评论(0编辑  收藏  举报