Is my VB.NET missing some methods??

Is my VB.NET missing some methods??

Anonymous
Not applicable
705 Views
5 Replies
Message 1 of 6

Is my VB.NET missing some methods??

Anonymous
Not applicable
Hi there,

I am pretty new to VB.NET and .NET API.

I have a problem with some of the methods like: GetSystemVariable/SetSystemVariable, SendStringToExecute... Even my ResultBuffer class doesn't have AsArray method.

I am using AutoCAD 2005 and VS2005. I don't know if I have missed something or the above methods only present in AutoCAD 2007?

In my preferences, I have: acdbmgd.dll and acmgd.dll.

BTW, what is acdbmgdhost.dll for?

I am stuck and desperately need help.

Thanks a lot,
Alan
0 Likes
706 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Hi all,

OK, I have asked a friend to send me the acmgd.dll and acdbmgd.dll from his AutoCAD 2007 and add them to my project references. All the methods now appear.

But this lead to a problem that now when I load my NET assembly, AutoCAD throws an exception and says unable to load.

Is there anyway for me to use the .NET assembly which uses .NET 2007 managed classes in AutoCAD 2005?

Thanks in advance,
Alan
0 Likes
Message 3 of 6

Anonymous
Not applicable
No. The API was severely limited in 2005 so I personally would not bother using it.

Regards - Nathan
0 Likes
Message 4 of 6

Anonymous
Not applicable
That's sad ;-).

Thanks Nathan.
Alan
0 Likes
Message 5 of 6

Anonymous
Not applicable
You and your friend might want to consider the possible legal ramifications
of exchanging parts of software.

AutoCAD 2007 is built with Visual Studio 2005 and uses .NET 2.0; neither are
generally very backwards compatible with previous versions.

Dan

wrote in message news:[email protected]...
Hi all,

OK, I have asked a friend to send me the acmgd.dll and acdbmgd.dll from his
AutoCAD 2007 and add them to my project references. All the methods now
appear.

But this lead to a problem that now when I load my NET assembly, AutoCAD
throws an exception and says unable to load.

Is there anyway for me to use the .NET assembly which uses .NET 2007 managed
classes in AutoCAD 2005?

Thanks in advance,
Alan
0 Likes
Message 6 of 6

Anonymous
Not applicable
Opps, so using those DLLs from AC2007 (although I have the license for AC2005) is illegal? I didn't know that 😉

If so, I will make sure I am not using them anymore.

Thanks for reminding me,
Alan
0 Likes