查看单个帖子
旧 2009-04-21, 12:02 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 帮忙看下代码

帮忙看下代码
www.dimcax.com
帮忙看下代码
(1).private void callbackareaonclick(object sender, eventargs e)
{
try
{
tools.runcommand(true, "_area");
}
catch (system.exception ex)
{
editor ed = application.documentmanager.mdiactivedocument.editor;
ed.writemessage(ex.message);
}
}
(2).[commandmethod("testarea")]
static public void testarea() // this method can have any name
{
try
{
tools.runcommand(true, "_area");
}
catch (system.exception ex)
{
editor ed = application.documentmanager.mdiactivedocument.editor;
ed.writemessage(ex.message);
}
}
1.根本就不执行 _area命令行,2又是对的。请问是什么原因,或者有什么方法可以让1执行_area.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)