I have a situation that the user has Multiple AcadApplication's (sessions) open. The program I am running is running outside of autocad and has to connect to the drawing.
But when I use then command :
acadApp = CType(GetObject(, UsedAcadApp), AcadApplication)
It will open the first application that is started.
This is not the situation I want. I want the user to select the session he needs and open this one.
I can find out wich sessions are open with:
Dim actProcesses() As Process = Process.GetProcesses
Dim actProcess As Process
For Each actProcess In actProcesses
If Trim(actProcess.ProcessName.ToLower) = "acad" Then
'Buffer the item in a array
I then can buffer the windows title or ID of the session
I can get the selected session as the active session, but then ?????