www.mxdraw.com
|
得到命令执行后的返回结果
static struct resbuf* Mx_GetRetArgs();
例如: C#
MxDrawResbuf param = new MxDrawResbuf(); axMxDrawX1.SendStringToExecuteFun("_DrawRadialDimension", param); MxDrawResbuf ret = (MxDrawResbuf)axMxDrawX1.Cal("Mx_GetRetArgs"); if (ret.Count > 1) { MessageBox.Show(ret.AtDouble(1).ToString()); }
例如: 易语言
.局部变量 param, MxDrawResbuf .局部变量 obj, 对象 param.取接口 (obj, ) MxDrawX1.SendStringToExecuteFun (“_DrawRadialDimension”, obj) obj = MxDrawX1.Cal (“Mx_GetRetArgs”) param.获取 (obj) .如果 (param.Count > 1) 编辑框1.内容 = 到文本 (param.AtDouble (1)) .否则 编辑框1.内容 = “” .如果结束