• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Contributor
    Dasharnb777
    Posts: 14
    Registered: ‎02-22-2012

    How to start programming on .NET for AutoCAD?

    237 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.

    Please use plain text.
    Valued Mentor
    Mike.Wohletz
    Posts: 351
    Registered: ‎07-29-2008

    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/

     

    Please use plain text.
    Valued Mentor
    KerryBrown
    Posts: 259
    Registered: ‎11-29-2008

    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

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

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


    I do not endorse the social media app links below:smileyembarrassed:

    Please use plain text.
    Contributor
    Dasharnb777
    Posts: 14
    Registered: ‎02-22-2012

    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.

    Please use plain text.
    Contributor
    Dasharnb777
    Posts: 14
    Registered: ‎02-22-2012

    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!

    Please use plain text.