.NET

Reply
Contributor
Dasharnb777
Posts: 14
Registered: ‎02-22-2012
Message 1 of 5 (358 Views)

How to start programming on .NET for AutoCAD?

358 Views, 4 Replies
03-24-2012 03:30 PM

So I decided to try programming for ACAD on .NET and I have MS VS 2010 installed and ObjectARX 2009 downloadded and unzipped. So what's next. What shoud I do to start programming?

As I understand I need ObjectARX to use AutoCAD .NET API's, and to be able to use "using System.Autodesk..." library. Am I right?

Thank you.

Valued Mentor
Mike.Wohletz
Posts: 376
Registered: ‎07-29-2008
Message 2 of 5 (341 Views)

Re: How to start programming on .NET for AutoCAD?

03-24-2012 09:11 PM in reply to: Dasharnb777

Since you have downloaded ObjectARX2009 I am going to guess that you are working in AutoCAD 2009, but what type of application are you wanting to start with? If you are looking to start with an add-in than look at this http://usa.autodesk.com/adsk/servlet/index?id=18162650&siteID=123112, it is based on the AutoCAD 2010 thru 2012 family, but I think that everything covered in that will also apply to 2009. If you are looking to start with a standalone EXE application to control AutoCAD than I am sure we can fine some samples on that as well here.

I would also look at  doing some searching on this blog http://through-the-interface.typepad.com/, most of the code is in C# but can be converted here http://www.developerfusion.com/tools/convert/csharp-to-vb/

 

Valued Mentor
KerryBrown
Posts: 276
Registered: ‎11-29-2008
Message 3 of 5 (339 Views)

Re: How to start programming on .NET for AutoCAD?

03-24-2012 09:59 PM in reply to: Mike.Wohletz

Mike.Wohletz wrote:

< .. > most of the code is in C# but can be converted

 


... or you could just use c#  :smileyhappy:

 

further references.

http://www.theswamp.org/index.php?topic=32381.0

 

Regards

//-------------------------------------------------------

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

Contributor
Dasharnb777
Posts: 14
Registered: ‎02-22-2012
Message 4 of 5 (330 Views)

Re: How to start programming on .NET for AutoCAD?

03-24-2012 11:58 PM in reply to: Mike.Wohletz

Thanx for the suggestions. Generally I don't know what exactly I want to get from my programmng but it would be something that will control pagesetup ofthe drawing. So I need to learn a lil bit about it. And fortunately I prefer C# and not VB.

Contributor
Dasharnb777
Posts: 14
Registered: ‎02-22-2012
Message 5 of 5 (318 Views)

Re: How to start programming on .NET for AutoCAD?

03-25-2012 06:01 AM in reply to: Dasharnb777

So seems like I found what I need! Just downloaded .NET Wizard and now I can create AutoCADplugin in my VS 2010 and there I can define System.Autodesk.... etc. Thanks!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!