Acad dialogs

Discussion in 'AutoCAD' started by perry, May 7, 2004.

  1. perry

    perry Guest

    Why is it that many of Autocads dialogs are avialable in AutoLisp, but
    apparently none can be called via VB?
    I'd like to gain access to the file open dialog, which in Lisp is simply
    done by "getfiled" command.
     
    perry, May 7, 2004
    #1
  2. perry

    Tim Badger Guest

    Don't really know why they didn't add the ability to access the standard
    acad dialogs. But you can still use them with vb, with a little creativity.
    When I really want to use a standard acad dialog, I do the following:

    1) I have a little generic lisp routine that is hard coded to load and run
    another routine. (with arguments and always using the same name.)

    2) I then have the vb program write a new lisp file that will call the
    requested standard dialog with any needed arguments.

    Any data that is needed to be returned to the vb program is done via a text
    file that the newly written lisp routine will open and write to.

    I hope I was able to explain it... 'cause I am dead tired right now and
    having many, many brain cramps :)

    Tim Badger
     
    Tim Badger, May 9, 2004
    #2
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.