Connect to AutoCAD 2004 with VB.net

Connect to AutoCAD 2004 with VB.net

Anonymous
Not applicable
260 Views
1 Reply
Message 1 of 2

Connect to AutoCAD 2004 with VB.net

Anonymous
Not applicable
I have probleme to take active AutoCAD 2004 application with
Dim acadApp as AutoCAD.Application = GetObject(,"AutoCAD.Application.16")
But if I use
Dim acadApp as AutoCAD.Application = CreateObject("AutoCAD.Application.16")
Is strart new AutoCAD 2004
Some body can help me !!!
On Windows XP PRO, AutoCAD 2004 and VB.net
0 Likes
261 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
facicad wrote:
> I have probleme to take active AutoCAD 2004 application with
> Dim acadApp as AutoCAD.Application =
> GetObject(,"AutoCAD.Application.16") But if I use
> Dim acadApp as AutoCAD.Application =
> CreateObject("AutoCAD.Application.16") Is strart new AutoCAD 2004
> Some body can help me !!!
> On Windows XP PRO, AutoCAD 2004 and VB.net

In C#, I use System.Runtime.InteropServices.GetActiveObject all the time
with no problem. I'm sure GetObject is the same call but just the same,
try taking the long route. Also, you might try dropping the ".16" when
using GetObject.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
0 Likes