really basic .net help

really basic .net help

Anonymous
Not applicable
799 Views
4 Replies
Message 1 of 5

really basic .net help

Anonymous
Not applicable
Ok.. I've tried using the 05 & 08 visual studio express editions, and even VS2008 since I have a MSDN susbscription and I can't for the life of me figure our how to make a "Hello World" program in .Net for AutoCAD. I've given up for now with visual studio and I am trying to use SharpDevelop. My background for programming is limited to LISP and VB/A. I have Vanilla ACAD 2008.

I tried doing what is listed on this webpage: http://management.cadalyst.com/cadman/article/articleDetail.jsp?id=164772

And when I "build" the code from that website, I get all sorts of warnings and errors and no .dll file is compiled that I can find.

What am I doing wrong? I followed this website 10 times and I cannot get it to work. Attached is a screen shot or Sharpdevelop with the code, etc.

Any help would be appreciated, as I would like to think that I accomplished something in the 5 hours I've been trying to get AutoCAD to say hello to the world.

Thanks.
0 Likes
800 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Have you tried the labs?

You can download the labs from http://www.autodesk.com/developautocad which are a great help.

If you know any .Net, these labs will give you all you need to know.

Also, check out the blog, http://blogs.autodesk.com/through-the-interface

Joshua Modglin
Hyaline Engineering
Phone: 571.229.3325
Web: http://www.hyaline-eng.com
Blog: http://civil3d.hyaline-eng.com
0 Likes
Message 3 of 5

Anonymous
Not applicable
Yes, I have the labs and read every blog entry Kean does. Downloaded the videos Kean made also. But most of it is over my head at this time.

Just wondering what I am doing wrong. Any language I have worked with, first things first, "Hello World". I have no experience in any flavor of C, and I'm trying to write this in vb.net.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Hi,

Well to get you started the following:
You need references to: "acdbmgd.dll" and "acmgd.dll"
maybe also "acmgdinternal.dll" depending on what you're going to do.

You now have Interop referenced....I think that one is only needed if you're going to use COM in .NET.

ps. set the 2 references ("acdbmgd.dll" and "acmgd.dll") Copy Local property to False.

A Caddie
Using VS2005(express), AutoCad 2008 sp1, Win XP Pro Sp2
0 Likes
Message 5 of 5

Anonymous
Not applicable
>> And when I "build" the code from that website, I
>> get all sorts of warnings and errors and no .dll file
>> is compiled that I can find.

Your screenshot shows you have the wrong
assemblies referenced. They are for using the
COM API, not the managed API.

You need to add these two assembly references:

acdbmdg.dll
acmgd.dll

Both of the above are in the same folder where
Acad.exe lives.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:[email protected]...
Ok.. I've tried using the 05 & 08 visual studio express editions, and even VS2008 since I have a MSDN susbscription and I can't for the life of me figure our how to make a "Hello World" program in .Net for AutoCAD. I've given up for now with visual studio and I am trying to use SharpDevelop. My background for programming is limited to LISP and VB/A. I have Vanilla ACAD 2008.

I tried doing what is listed on this webpage: http://management.cadalyst.com/cadman/article/articleDetail.jsp?i
d=164772

And when I "build" the code from that website, I get all sorts of warnings and errors and no .dll file is compiled that I can find.

What am I doing wrong? I followed this website 10 times and I cannot get it to work. Attached is a screen shot or Sharpdevelop with the code, etc.

Any help would be appreciated, as I would like to think that I accomplished something in the 5 hours I've been trying to get AutoCAD to say hello to the world.

Thanks.
0 Likes