求教关于zoom e的问题
<p>请问哪位大哥知道</p><p>zoom e</p><p>它具体作了什么</p><p>用arx怎么实现他(不调用ads_command)</p> <p>void nsp::zoomExtents()<br/>{<br/> //acedCommand(RTSTR, "_ZOOM", RTSTR, "_E",RTNONE);</p><p>//上一行为命令方式实现Zoom Extents<br/> AcDbViewTableRecord view;<br/> acdbHostApplicationServices()->workingDatabase()->updateExt(TRUE);<br/> AcGePoint3d max =acdbHostApplicationServices()->workingDatabase()->extmax();<br/> AcGePoint3d min = acdbHostApplicationServices()->workingDatabase()->extmin();<br/> <br/> AcGePoint2d max_2d (max, max);<br/> AcGePoint2d min_2d (min, min);<br/> // now set the view centre point<br/> view.setCenterPoint (min_2d + (max_2d - min_2d) / 2.0);<br/> // now height and width of view<br/> view.setHeight(max_2d - min_2d);<br/> view.setWidth (max_2d - min_2d);<br/> // set the view<br/> acedSetCurrentView (&view, NULL);<br/>}</p><p>zoom e 我也不知道怎么准确描述</p> <p>这样做是zoom a</p><p>不是zoom e</p>
页:
[1]