New Member
Posts: 1
Registered: ‎05-10-2013
Message 1 of 2 (344 Views)

Get all running autocad application instances in .Net

344 Views, 1 Replies
05-10-2013 02:15 AM

Hello everyone,


I need to get all Autocad applications objects, not only active one.


I'm writing a program which is checking if XREFS attached to current drawing are not opened in another Autocad instance.


Normaly I can get document collection as follow:


Dim docCol As DocumentCollection = Application.DocumentManager

Is there a way to get an Application object from another Autocad process (acad.exe)? 

I wonder if there is something like this:


Dim app As Application = GetApplicationFromProcess()
Dim docCol As DocumentCollection = app.DocumentManager



Basic scenario is:

- Create new autocad drawing 

- Open another drawing in separated Autocad instance (another process)

- Attach second drawing to newly created one as Xref.


Problem is with checking if attached reference is opened in second instance of Autocad.


*Expert Elite*
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 2 (317 Views)

Re: Get all running autocad application instances in .Net

05-11-2013 07:55 AM in reply to: luktar
First instance know nothing about second instance,
just a thoughts
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!