GetObject() and more than one session of AutoCAD

GetObject() and more than one session of AutoCAD

Anonymous
Not applicable
149 Views
1 Reply
Message 1 of 2

GetObject() and more than one session of AutoCAD

Anonymous
Not applicable
Hello,

I am working in VB6 and want GetObject() to find a specific session of
AutoCAD when multiple sessions are running. It grabs the first AutoCAD
session started.

Can the order of these sessions be re-sequenced so that the GetObject() will
find the one I want? (through Win32 API Calls?).

This is not related to which AutoCAD has focus last. My situation is that
the AutoCAD session(s) will always already be started before my application
runs.

Thanks,
Bernard Reimer
0 Likes
150 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
AsdkUnSupport2000 has what you need. See RevokeAutoCAD and RegisterAutoCAD
methods of its Application object. They let you cycle through running
instances until you find the one you want.

--
Mark Holder
Applied Technology Solutions, Inc.

Bernard Reimer wrote in message
news:A31078C0559FFD64EAD5D4BB4871860C@in.WebX.SaUCah8kaAW...
> Hello,
>
> I am working in VB6 and want GetObject() to find a specific session of
> AutoCAD when multiple sessions are running. It grabs the first AutoCAD
> session started.
>
> Can the order of these sessions be re-sequenced so that the GetObject()
will
> find the one I want? (through Win32 API Calls?).
>
> This is not related to which AutoCAD has focus last. My situation is that
> the AutoCAD session(s) will always already be started before my
application
> runs.
>
> Thanks,
> Bernard Reimer
>
0 Likes