.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Multiple AcadApplic ation's open
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
87 Views, 3 Replies
10-14-2005 03:51 AM
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
End If
Next
I then can buffer the windows title or ID of the session
I can get the selected session as the active session, but then ?????
Can anybody help me out ?
With kind regards,
Harold van Aarsen
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
End If
Next
I then can buffer the windows title or ID of the session
I can get the selected session as the active session, but then ?????
Can anybody help me out ?
With kind regards,
Harold van Aarsen
Re: Multiple AcadApplic ation's open
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-18-2005 01:24 AM in reply to:
as
Are there any C# programmers who can help me ?
Re: Multiple AcadApplic ation's open
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-18-2005 05:23 AM in reply to:
as
Why make the user pick which session?
Just define a command inside each session that can do what you want and already knows what is what.
If they have to pick the session, why not just have them pick the appropriate Autocad window instead?
Chris Arps
Just define a command inside each session that can do what you want and already knows what is what.
If they have to pick the session, why not just have them pick the appropriate Autocad window instead?
Chris Arps
Re: Multiple AcadApplic ation's open
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-18-2005 10:45 AM in reply to:
as
Good idea, didn't think of that, was to focused on the different applications. Thanks !

