问:为什么这个命令调用不了?
<P>当对CommandMethod属性采用四个参数调用时,在AutoCAD2006中无法调用,代码如下:</P><P>using System ;<BR>using Autodesk.AutoCAD.Runtime ;<BR>using Autodesk.AutoCAD.EditorInput;<BR>using Autodesk.AutoCAD.ApplicationServices;</P>
<P></P>
<P>namespace ClassLibrary<BR>{<BR> /// <summary><BR> /// Summary description for LSMClass.<BR> /// </summary><BR> public class LSMClass<BR> {<BR> public LSMClass()<BR> {</P>
<P> }</P>
<P> // Define Command "AsdkCmd1"<BR> <BR> static public void test() // This method can have any name<BR> {<BR> Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;<BR> ed.WriteMessage("\nHello World"); // Put your command code here<BR> }</P>
<P> }<BR>}</P>
<P>个中缘由,请大家助我!</P>
<P>谢谢!</P>
页:
[1]