T
tensai
Hi,
I'm using C# to create an AutoCAD object in this manner..
private AcadApplication acadApp;
const string acad2004ProgID = "AutoCAD.Application.16";
acadApp =
(AcadApplication)System.Runtime.InteropServices.Marshal.GetActiveObject(acad2004ProgID);
and that works fine...
now what I want to be able to do is get the Process ID of that autocad
object so I can do things like Killing it or whatever using commands
from System.Diagnostics
Is there any way to obtain the Process ID of that autocad object
without having to use any strange workarounds?
Thanks,
Himanshu
I'm using C# to create an AutoCAD object in this manner..
private AcadApplication acadApp;
const string acad2004ProgID = "AutoCAD.Application.16";
acadApp =
(AcadApplication)System.Runtime.InteropServices.Marshal.GetActiveObject(acad2004ProgID);
and that works fine...
now what I want to be able to do is get the Process ID of that autocad
object so I can do things like Killing it or whatever using commands
from System.Diagnostics
Is there any way to obtain the Process ID of that autocad object
without having to use any strange workarounds?
Thanks,
Himanshu