有没有编辑器的技巧。命令()
好。。。所以这是一个非常有野味的问题,但我避免使用ed。Command() 永远只是因为我总是在附加的图像中出现错误。有人可以告诉我我需要加载什么参考以及我应该使用什么“使用”谢谢!**** Hidden Message ***** 手段编辑器对象不包含名为命令的方法。
您使用旧版本或缺少引用,或从未为其创建扩展方法。
对...需要知道哪个引用
我想可能是interop或interop common,但我猜不是。
internal const char ESC = '\x1B';
internal const char RETURN = '\xD';
internal static void SendCommandToCommandLine(string Command, bool Escape = true) {
string EscapeString = string.Empty;
if (Escape == true) { EscapeString = ESC.ToString() + ESC.ToString(); }
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(EscapeString + Command + RETURN, true, false, true);
}
谢谢!我会试一试 Editor.Command() 可能不是 2014 年的项目吗? 编辑器命令()和命令同步()方法是在2015年API中引入的。因此,如果为早期版本编码或定位,您将无法使用这些方法。
敬畏!就这样吧哈哈...快把我逼疯了
谢谢!!
页:
[1]