.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get all running autocad application instances in .Net

1 REPLY 1
Reply
Message 1 of 2
luktar
653 Views, 1 Reply

Get all running autocad application instances in .Net

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:

 

Spoiler
Spoiler
Dim app As Application = GetApplicationFromProcess()
Spoiler
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.

 

1 REPLY 1
Message 2 of 2
Hallex
in reply to: luktar

First instance know nothing about second instance,
just a thoughts
_____________________________________
C6309D9E0751D165D0934D0621DFF27919

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost