几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】求教关于zoom e的问题 (http://www.dimcax.com/hust/showthread.php?t=7905)

yang686526 2009-04-18 05:40 PM

【转帖】求教关于zoom e的问题
 
求教关于zoom e的问题
求教关于zoom e的问题
请问哪位大哥知道
zoom e
它具体作了什么
用arx怎么实现他(不调用ads_command)
void nsp::zoomextents()
{
//acedcommand(rtstr, "_zoom", rtstr, "_e",rtnone);
//上一行为命令方式实现zoom extents
acdbviewtablerecord view;
acdbhostapplicationservices()->workingdatabase()->updateext(true);
acgepoint3d max =acdbhostapplicationservices()->workingdatabase()->extmax();
acgepoint3d min = acdbhostapplicationservices()->workingdatabase()->extmin();

acgepoint2d max_2d (max[x], max[y]);
acgepoint2d min_2d (min[x], min[y]);
// now set the view centre point
view.setcenterpoint (min_2d + (max_2d - min_2d) / 2.0);
// now height and width of view
view.setheight(max_2d[y] - min_2d[y]);
view.setwidth (max_2d[x] - min_2d[x]);
// set the view
acedsetcurrentview (&view, null);
}
zoom e 我也不知道怎么准确描述
*******************
e_mail : siebeneagle@yahoo.com.cn
msn : siebeneagle@hotmail.com
qq : 812928665
这样做是zoom a
不是zoom e


所有的时间均为北京时间。 现在的时间是 01:09 PM.