mater789 发表于 2007-2-9 14:37:00

求教关于zoom e的问题

<p>请问哪位大哥知道</p><p>zoom e</p><p>它具体作了什么</p><p>用arx怎么实现他(不调用ads_command)</p>

sieben 发表于 2007-2-10 15:02:00

<p>void nsp::zoomExtents()<br/>{<br/>&nbsp;//acedCommand(RTSTR, "_ZOOM", RTSTR, "_E",RTNONE);</p><p>//上一行为命令方式实现Zoom Extents<br/>&nbsp;AcDbViewTableRecord view;<br/>&nbsp;acdbHostApplicationServices()-&gt;workingDatabase()-&gt;updateExt(TRUE);<br/>&nbsp;AcGePoint3d max =acdbHostApplicationServices()-&gt;workingDatabase()-&gt;extmax();<br/>&nbsp;AcGePoint3d min = acdbHostApplicationServices()-&gt;workingDatabase()-&gt;extmin();<br/>&nbsp;<br/>&nbsp;AcGePoint2d max_2d (max, max);<br/>&nbsp;AcGePoint2d min_2d (min, min);<br/>&nbsp;// now set the view centre point<br/>&nbsp;view.setCenterPoint (min_2d + (max_2d - min_2d) / 2.0);<br/>&nbsp;// now height and width of view<br/>&nbsp;view.setHeight(max_2d - min_2d);<br/>&nbsp;view.setWidth (max_2d - min_2d);<br/>&nbsp;// set the view<br/>&nbsp;acedSetCurrentView (&amp;view, NULL);<br/>}</p><p>zoom e 我也不知道怎么准确描述</p>

mater789 发表于 2007-2-10 17:26:00

<p>这样做是zoom a</p><p>不是zoom e</p>
页: [1]
查看完整版本: 求教关于zoom e的问题