Getting Process ID of a created ActiveX object

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top