Can I use AutoCAD 2005 Type library in C#

Discussion in 'AutoCAD' started by Laurie Comerford, Nov 8, 2004.

  1. Hi Alex,

    The answer is that you can. However the issues involved are usually
    discussed in an ObjectARX Newsgroup, but it seems to have disappeared from
    my list of Newsgroups. Try searching for ObjectARX.

    If you are prepared to open an AutoCAD with your program, the whole process
    will be a lot simpler and you will be able to get help here.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    through a reference to AutoCAD 2005 type library. I have used Excel in this
    way. You can create the application, open & add workbooks, worksheets, read
    and write data to them. Can the same be done with AutoCAD?
    from a file and imports them into AutoCAD. I have it developed with VBA, but
    i want to be able to generate the dwg without starting AutoCAD.
     
    Laurie Comerford, Nov 8, 2004
    #1
  2. Laurie Comerford

    sangata Guest

    Hello,

    I came to the question, can AutoCAD be used in a C# (.NET) program, through a reference to AutoCAD 2005 type library. I have used Excel in this way. You can create the application, open & add workbooks, worksheets, read and write data to them. Can the same be done with AutoCAD?

    What i want to develop is an importer tool, that reads point coordinates from a file and imports them into AutoCAD. I have it developed with VBA, but i want to be able to generate the dwg without starting AutoCAD.

    Thanks in advance.
    Alex
     
    sangata, Nov 8, 2004
    #2
  3. Laurie Comerford

    sangata Guest

    Thanks for your reply.

    I have used ObjectARX with MS VC++ 6. But it was a separate setup installing an upgrade to the development environment.
    What i am thinking of now is simply to reference the COM library 'AutoCAD 2005 type library' that becomes available to the .NET studio after installing AutoCAD and to use it in a C# program. I am not sure though if it is accessible this way(the members may be private or something) or you need the ObjectARX library.
    What do you mean if i am prepared to open AutoCAD?

    Thanks.
    Alex
     
    sangata, Nov 8, 2004
    #3
  4. Hi,

    From your original post:

    "I have it developed with VBA, but I want to be able to generate the dwg
    without starting AutoCAD."

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au


    installing an upgrade to the development environment.
    2005 type library' that becomes available to the .NET studio after
    installing AutoCAD and to use it in a C# program. I am not sure though if it
    is accessible this way(the members may be private or something) or you need
    the ObjectARX library.
     
    Laurie Comerford, Nov 8, 2004
    #4
  5. Laurie Comerford

    Anne Brown Guest

    Hi Laurie -

    The ARX group still exists. The ObjectARX Customization
    discussion group can be accessed in either of the following ways:
    By NNTP discussion group reader at
    news://discussion.autodesk.com/autodesk.autocad.objectarx
    By HTTP (web-based) interface at
    http://discussion.autodesk.com/forum.jspa?forumID=34
     
    Anne Brown, Nov 8, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.