void zysetscale() { // TODO: Implement the command int rc; ads_real sf; ads_name sname; ads_matrix matrix; acedPrompt("\nSelect enties to scale (transfrom)"); rc=acedSSGet(NULL,NULL,NULL,NULL,sname); ident_init(matrix);//调用函数初始化矩阵
acedInitGet(RSG_NONULL+RSG_NONEG+RSG_NOZERO,NULL); acedGetReal("\nTransformation Scale factor: ",&sf); for(int i=0;i<3;i++) { matrix=sf; }
rc=acedXformSS(sname,matrix); acedSSFree(sname); } |