#include "StdAfx.h" #include "StdArx.h" // This is command 'SETSCALE' 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); for(int i=0;i<3;i++) { matrix=sf; } acedInitGet(RSG_NONULL+RSG_NONEG+RSG_NOZERO,NULL); acedGetReal("\nTransformation Scale factor: ",&sf); rc=acedXformSS(sname,matrix); acedSSFree(sname); }
|