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

Get all running autocad application instances in .Net

348 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 (321 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.