与初学者共享程序
<p>与初学者共享程序</p> <p>#include "StdAfx.h"<br/>#include "StdArx.h"</p><p><br/>// This is command 'SETSCALE'<br/>void zysetscale()<br/>{<br/> // TODO: Implement the command<br/> int rc;<br/> ads_real sf;<br/> ads_name sname;<br/> ads_matrix matrix;<br/> acedPrompt("\nSelect enties to scale (transfrom)");<br/> rc=acedSSGet(NULL,NULL,NULL,NULL,sname);<br/> <br/> ident_init(matrix);<br/> for(int i=0;i<3;i++)<br/> {<br/> matrix=sf;<br/> }<br/> acedInitGet(RSG_NONULL+RSG_NONEG+RSG_NOZERO,NULL);<br/> acedGetReal("\nTransformation Scale factor: ",&sf);<br/> rc=acedXformSS(sname,matrix);<br/> acedSSFree(sname);<br/>}<br/></p> 谢谢楼主,也在初学arx,共勉!
页:
[1]