|
发表于 2004-10-13 18:57:00
|
显示全部楼层
1. lsp程序:
(defun myfun()
(setq myfunret 44)
)
(vl-acad-defun 'myfun)
2. arx程序
static void acedInvoke_ink(void)
{
// Add your code for command acedInvoke._ink here
resbuf *rb_in = acutBuildList(RTSTR, "myfun", RTNONE);
resbuf *rb_out = NULL;
int rc = acedInvoke(rb_in, &rb_out);
acutRelRb(rb_in);
acedGetSym("myfunret", &rb_out);
int ret = rb_out->resval.rint;
acutRelRb(rb_out);
acutPrintf("\n ret = %d", ret);
}
我试过了,没问题 |
|