.NET

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

Get all running autocad application instances in .Net

266 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:

 

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.

 

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 2 (239 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
_____________________________________
C6309D9E0751D165D0934D0621DFF27919

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community