ACAD2002 and ACAD2000LT

Discussion in 'AutoCAD' started by talledo, Aug 5, 2004.

  1. talledo

    talledo Guest

    I made my application in VB importing reference "AutoCAD 2000 Type Library"... The application runs well with AutoCAD2002. I test my application with autoCAD2000LT but it doesn't work. I see an ActiveX error while the application tries to connect Acad2000LT...
    Any ideas? I don't know what the matter is...

    Diego Alejandro Talledo
     
    talledo, Aug 5, 2004
    #1
  2. Hi,

    To run any form of VBA or Lisp you need the LT upgrade. It called AutoCAD.


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    Library"... The application runs well with AutoCAD2002. I test my
    application with autoCAD2000LT but it doesn't work. I see an ActiveX error
    while the application tries to connect Acad2000LT...
     
    Laurie Comerford, Aug 5, 2004
    #2
  3. talledo

    talledo Guest

    Ok, but I've made my form in Visual Basic 6.0 for this reason... I have a program that work with ACAD LT....
     
    talledo, Aug 5, 2004
    #3
  4. You need to use DDE
    --
    Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica

    program that work with ACAD LT....
     
    Jorge Jimenez, Aug 6, 2004
    #4
  5. talledo

    talledo Guest

    What is it? I've never heard about DDE...
    Thanks
    Diego Alejandro Talledo
     
    talledo, Aug 6, 2004
    #5
  6. Jorge Jimenez, Aug 6, 2004
    #6
  7. talledo

    Tom Roberts Guest

    If you think it is a substitute for VBA think again
    DDE basically allows you to send text strings to the AutoCAD command line
    To get any sort of data (including User input) back from AutoCAD you have to
    resort to horrible hacks such as writing and reading the LOG file, exporting
    attributes to a text file and exporting entities to a DXF file.

    For an example of how to initialise a DDE link see my web site
    http://members.iinet.net.au/~bigbyte/vb.htm

    --
    Regards
    Tom Roberts
    __________________________
    MechWest Design & Drafting
    Perth, Western Australia
     
    Tom Roberts, Aug 6, 2004
    #7
  8. talledo

    talledo Guest

    Hi, first thanks for your help...
    I made my app with AcadApplication object and AcadDocument object. If I correctly unterstood, with DDE I can send commands to AutoCAD LT (as I type then in command line), right?
    But my macros in VB6 are very complicated and I can't resolve my problem if I use only standard AutoCAD commands.
    Tom, if I need to know how long I line is, or if I need to know how many lines does the user select, I have to do the horrible hacks you say to me?

    Thanks
    Diego Alejandro Talledo
     
    talledo, Aug 6, 2004
    #8
  9. talledo

    Tom Roberts Guest

    This is going to get ugly
    lines does the user select, I have to do the horrible hacks you say to me?

    To get the length of a line you could do something like this:
    turn on the AutoCAD logfile by sending the command LOGFILEON
    send the LIST command
    open the log file with you VB app
    read the logfile to get the length of the line
    turn off the log file by sending the command LOGFILEOFF

    To find out how many objects the User selected you could use a similar
    method with the logfile and watch for the line:
    Select objects: 1 found, 2 total

    You are going to have to find solutions to all sorts of problems like
    synchronising your application with the User selecting an object. What if
    the User doesn't select a line? What if the User doesn't pick anything?
     
    Tom Roberts, Aug 9, 2004
    #9
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.