资源简介
AutoCAD 2013 执行命令 方法

代码片段和文件信息
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;
namespace ToolPaletteGas
{
/* public static class EditorInputExtensionMethods
{
public static PromptStatus Command(this Editor editor params object[] args)
{
if (editor == null)
throw new ArgumentNullException(“editor“);
return runCommand(editor args);
}
static Funcject[] PromptStatus> runCommand = GenerateRunCommand();
static Funcject[] PromptStatus> GenerateRunCommand()
{
MethodInfo method = typeof(Editor).GetMethod(“RunCommand“
BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
var instance = expression.Parameter(typeof(Editor) “instance“);
var args = expression.Parameter(typeof(object[]) “args“);
return expression.Lambdaject[] PromptStatus>>(
expression.Call(instance method args) instance args)
.Compile();
}
}
*/
public static class AboutCMD
{
[System.Security.SuppressUnmanagedCodeSecurity]
[DllImport(“accore.dll“ EntryPoint = “acedCmdS“ CharSet = CharSet.Auto CallingConvention = CallingConvention.Cdecl)]
extern static private int acedCmdS(IntPtr resbuf);
public static bool HasCommand = false;
public static Listject> BufferCommand = new Listject>();
public const string PauseToken = @“\“;
private static Hashtable resTypes;//
/* public static void RunCommand(bool echoCommand params object[] args)
{
Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
doc.Editor.Command(args);
}
public static void RunBurrerCommand()
{
if (HasCommand == true)
{
Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
doc.Editor.Command(BufferCommand.ToArray());
}
HasCommand = false;
BufferCommand.Clear();
}
*/
static AboutCMD()
{
resTypes = new Hashtable();
resTypes[typeof(String)] = (int)LispDataType.Text;
resTypes[typeof(string)] = (short)0x138d;
resTypes[typeof(double)] = (short)0x1389;
resTypes[typeof(Point3d)] = (short)0x1391;
resTypes[typeof(objectId)] = (short)0x138e;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6445 2014-11-17 14:29 InvokeArx.cs
文件 1787 2014-11-17 18:03 toolsPublicFun.cs
- 上一篇:Rockey4ND硬复制工具, 设置密码及ID工具
- 下一篇:零相位滤波
相关资源
- AutoCAD永久去教育版破解补丁
-
Windows em
bedded Compact 2013 应用开发调 - porting.RTEMS移植指南.双语.V20131224.pdf
- 2003-2013全国电赛历年真题
- C读DXF源程序及AutoCAD中的DXF参考文件
-
AutoCAD ob
jectARX二次开发实例-状态栏 - 在delphi7下进行autocad二次开发的一个简
- AutoCAD v2016 官方.zip
- VIsual Studio2013,2015官方完全卸载工具
- Microsoft Visio 2013 Professional 64位简体中
- 中文版AutoCAD_Mechanical_2010_官方教程-
- AutoCAD.2007.CHS.中文破解文件
- AutoCAD-2017教程
- VS2010、VS2012、VS2013代码自动注释插件
- autocad2002基础初学者必看
- VRay 3.60.03 for 3dsmax 2013-2018破解补丁
- 通过x264录制RGB屏幕视频vs2013工程,
- visio2013模板资源
- ntfs-3g_ntfsprogs-2013.1.13.tgz
- AutoCAD二次开发在直齿圆柱齿轮参数化
- CHIP2013中国居民收入调查数据
- IBM SPSS数据分析与挖掘实战案例精粹
- 数码大师2013破解版本
- GJB151B-2013
- 黑客防线2013年第1到12期全集合
- FFmpeg-3.1 windows vs2013编译动态库静态库
- MT7601U_LinuxAP_3.0.0.1_20130802.tar.bz2
- 2013-2018年10月全国各城市的空气质量指
- 使用ffmpeg将多张图片生成H264裸流并获
- ffmpeg-vs2013
评论
共有 条评论