int rc;
TCHAR keyword[20];
acedInitGet(NULL, TEXT("U Y O"));
rc = acedGetPoint(ptPre, L"
请输入下一个点或[回退U/返回退Y/完成O]:", ptCur);
while (rc == RTKWORD || rc == RTNORM) {
switch (rc) {
case RTKWORD:
if (acedGetInput(keyword) != RTNORM) return;
if (_tcscmp(keyword, TEXT("U")) == 0) {
...
}
...
break;
case RTNORM:
...
break;
}