[每日一码] 判断当前是否是图纸空间
bool pure**Space(){
struct resbuf rb;
int nTileMode, nVport;
acedGetVar("tilemode", &rb);
nTileMode = rb.resval.rint;
acedGetVar("cvport", &rb);
nVport = rb.resval.rint;
if(nTileMode == 0 && nVport == 1)
return true;
else
return false;
}
页:
[1]