0

I have a custom exe which references a DLL with necessary AUTO CAD dll's. I am using AUTO CAD SDK. I am able to call/execute commands using this SDK. I am trying to figure out on how to pass a parameter to a command method.

// 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");
Nik
  • 1,780
  • 1
  • 14
  • 23
tam tam
  • 1,870
  • 2
  • 21
  • 46

0 Answers0