VB6 book

Discussion in 'AutoCAD' started by talledo, Jul 26, 2004.

  1. talledo

    talledo Guest

    Is there any book about using VB6 with AutoCAD?
    Thank You
    Diego Alejandro Talledo
     
    talledo, Jul 26, 2004
    #1
  2. talledo

    HJohn Guest

    Probably there are a few of them, but it is very difficult to find the one that would give you a big push into VBA. My recommendation is start getting familiar with the AutoCAD Object Model and writing a few simple things, AutoCAD VBA help is very good for that. Then, get yourself a few books on Visual Basic there you would find a lots of techniques that you could apply to this. In addition, check this discussion group and post any questions you have, people here would be glad to give you a hand. Don't forget that Visual Basic has moved into .NET, you might consider starting with it or C#, if you are planning to proceed in programming. Good lock!
     
    HJohn, Jul 26, 2004
    #2
  3. talledo

    talledo Guest

    But can I use VB .NET to program my autoCAD? Some people told me that .NET is completely different from VB6...
     
    talledo, Jul 27, 2004
    #3
  4. Hi,

    The answer is a categoric YES.

    It is simply a different way. As yet there is no ".NET for Applications" in
    the sense of "VB for Applications" or VBA built into AutoCAD, but we are all
    waiting for Autodesk to create this capability. In the meantime C# in .NET
    is being seen by many as the optimum language for the future.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    is completely different from VB6...
     
    Laurie Comerford, Jul 27, 2004
    #4
  5. Nathan Taylor, Jul 27, 2004
    #5
  6. talledo

    talledo Guest

    I'm not very experienced...But I've understood that VB6 use ActiveX or OLE Automation to interface with ACAD...What about VB .NET?
    Thanks
    Diego Alejandro Talledo
     
    talledo, Jul 28, 2004
    #6
  7. talledo

    tj Guest

    for the future.

    http://python.org

    I started using python about a month and a half ago and I must say it's easy
    to code in as well as being a powerful language. I highly recommend taking a
    look.
     
    tj, Jul 30, 2004
    #7
  8. talledo

    Tim Badger Guest

    Took quick look at python... it sure deserves further investigation. Thanks
    tj.
     
    Tim Badger, Jul 30, 2004
    #8
  9. talledo

    tj Guest

    tj, Jul 30, 2004
    #9
  10. Hi,

    Are you using it generally, or to talk to the AutoCAD object model ?

    How much detailed sample code can you find for AutoCAD and add ons like Map,
    ADT, MDT, LDT etc. ?

    Lack of sample code may be OK for professional programmers, but for those to
    whom coding is a by product of other work, then lack of it will be critical.

    Autodesk are clearly going into .NET. Does Python have a clean interaction
    with that ?

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Jul 30, 2004
    #10
  11. talledo

    tj Guest

    I'm using it generally and to talk to the AutoCAD object model. All I need
    to do is:

    import win32com.client
    o = win32com.client.Dispatch("AutoCAD.Application")

    From there I can completely control AutoCAD.

    As for the lack of sample code, I don't know what to tell you. I'm hardly a
    "professional programmer" but I'm really not having a tough time with it.
    Like any language it just takes some time to get used to the syntax.

    Microsoft is paying Activestate to develop a python interpreter for the dot
    net framework. So I'm sure that by the time AutoCAD goes dot net python will
    be right there with it.
     
    tj, Aug 2, 2004
    #11
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.