几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(VB.NET/C#) (http://www.dimcax.com/hust/forumdisplay.php?f=176)
-   -   帮忙看下代码 (http://www.dimcax.com/hust/showthread.php?t=9651)

yang686526 2009-04-21 12:02 PM

帮忙看下代码
 
帮忙看下代码
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.


所有的时间均为北京时间。 现在的时间是 11:37 PM.