There are two types of ActiveX/COM plugins:
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
using Teigha.Runtime; using PCAD_AC_X; using System.Runtime.InteropServices; namespace ActiveXCOMSample { public class PluginCommands { [CommandMethods("MySampleCommand")] public void AnyFunctionName() { IAcadApplication app = (IAcadApplication)Marshal.GetActiveObject("PCAD_AC_X.AcadApplication"); } } } |
Migrating AutoCAD® ActiveX PlugIn Application to ARES Commander
...