sometimes this works sometimes not

Discussion in 'AutoCAD' started by MP, Mar 8, 2005.

  1. MP

    MP Guest

    Sometimes when running this lisp function the drawing from which it was
    called hangs
    the new drawing opens but the previous drawing is hung
    the only way to close acad or the hung drawing then is with taskmanager
    it used to work pre 2005
    are there adjustments needed now?
    sometimes it works ok even in 2005
    sometimes it hangs
    I haven't figured out what the difference is when it works and when it
    hangs.
    Anyone have info on this?

    (defun OpenDwgFile(fullname)
    (command "vbastmt" (strcat "AcadApplication.Documents.Open"
    (chr 34) fullname (chr 34)))
    );defun

    tia
    Mark
     
    MP, Mar 8, 2005
    #1
  2. MP

    ECCAD Guest

    MP,
    You may want to try a:
    (command ".qsave")
    just before the vbastmt call.
    Should reset the DBMOD.

    Bob
     
    ECCAD, Mar 9, 2005
    #2
  3. MP

    MP Guest

    interesting thought
    I'll try it
    thanks
    Mark
     
    MP, Mar 9, 2005
    #3
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.