C# 使用AUTOCAD SDK编程调用AUTOCAD命令时如何发送参数

C# 使用AUTOCAD SDK编程调用AUTOCAD命令时如何发送参数,c#,autocad-plugin,C#,Autocad Plugin,我有一个自定义exe,它引用了一个带有必要AUTO CAD DLL的DLL。我正在使用AUTO CAD SDK。我能够使用此SDK调用/执行命令。我试图弄清楚如何将参数传递给命令方法 // Get the active document AcadDocument acDocComObj; acDocComObj = acApp.ActiveDocument; // Optionally, load your assembly and start your command or if your

我有一个自定义exe,它引用了一个带有必要AUTO CAD DLL的DLL。我正在使用AUTO CAD SDK。我能够使用此SDK调用/执行命令。我试图弄清楚如何将参数传递给命令方法

// Get the active document
AcadDocument acDocComObj;
acDocComObj = acApp.ActiveDocument;

// Optionally, load your assembly and start your command or if your assembly
// is demandloaded, simply start the command of your in-process assembly.
acDocComObj.SendCommand("(command " + (char)34 + "NETLOAD" + (char)34 + " " +
                         (char)34 + @"C:/wood_plc/TAD Program/TAD Indexer Service/Dev/Tad.Indexer.CadCommands/bin/Debug/netstandard2.0/Tad.Indexer.CadCommands.dll" + (char)34 + ") ");
acDocComObj.SendCommand("TEST " + "custom parameter" + "\n");

那么上面代码的哪一部分对您不起作用呢?我需要传递参数并检索它。它不让我通过,也没有错误。这回答了你的问题吗?你下达什么命令?你想找回什么?