查看单个帖子
旧 2009-04-18, 05:40 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】求教关于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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)