|
struct resbuf rb, rb1,rb2,rb3;
acedGetVar("ANGDIR", &rb);
rb1.restype = RTSHORT;
rb1.resval.rint =1;
if (acedSetVar("ANGDIR", &rb1) != RTNORM)
{
acedAlert("设置系统变量ANGDIR时出错");
return ; // Setvar failed.
}
acedGetVar("ANGBASE", &rb2); rb3.restype = RTREAL;
rb3.resval.rint = 270.0;
if (acedSetVar("ANGBASE", &rb3) != RTNORM)
{
acedAlert("设置系统变量ANGBASE时出错");
return ; // Setvar failed.
} |
|