[注意][求助]想修改块的特性中的X,Y比例,但是不能实现????附代码
<p>我想修改块的特性中的X,Y比例,代码如下</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/>}</p> <p><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);//调用函数初始化矩阵</p><p> acedInitGet(RSG_NONULL+RSG_NONEG+RSG_NOZERO,NULL);<br/> acedGetReal("\nTransformation Scale factor: ",&sf);</p><p><strong><font color="#e6421a"> for(int i=0;i<3;i++)<br/> {<br/> matrix=sf; <br/> }<br/><br/></font></strong> rc=acedXformSS(sname,matrix);<br/> acedSSFree(sname);<br/>}</p>
页:
[1]