![]() |
【转帖】求教关于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. |