/*****************************************************
* FileName: SendCommandToAutoCad.txt
* File Created: 2010-4-9 15:26
* Description: 在.NET程序中向AutoCAD发出命令有下面几种方法:
* •SendStringToExecute (托管文档对象)
* •SendCommand (COM文档对象)
* •acedPostCommand (通过P/Invoke)
* •ads_queueexpr()(通过P/Invoke)
* 需要引入using System.Runtime.InteropServices;
* 要注意命令字符串必须后面有个空格,如:Hello_
* Purpose :
* History:
* Creator : 成吉思汗
*****************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace Client.AutoCad
{
public class SendCommandTo