What command is being issued when...

Discussion in 'AutoCAD' started by tsigwing, Nov 4, 2004.

  1. tsigwing

    tsigwing Guest

    I click on the "X" in the upper right hand corner and the "save changes" message appears and I click on "ok"?
     
    tsigwing, Nov 4, 2004
    #1
  2. If it's the far upper right hand corner, it would be Exit. If it's the
    slightly smaller one just below that, it would be Close.
     
    Kent Cooper, AIA, Nov 4, 2004
    #2
  3. Or if you're asking about the OK part itself, I assume that would have to be
    Qsave (or, if the drawing isn't named, Saveas, which is what Qsave would
    turn into under those circumstances), followed immediately by Close or Exit.
     
    Kent Cooper, AIA, Nov 4, 2004
    #3
  4. Looking into the Command Reference in Help to remind myself of the exact
    differences between Qsave, Save, and Saveas, I find under related topics
    that what is called "Exit" on the File pull-down menu is really QUIT
    (AutoCAD has no "Exit" command by that name), so that would be the command
    that the X in the far upper right corner issues. "Save" on that pull-down
    menu is really QSAVE. If you have 2000 or earlier with a screen menu, on
    the screen File sub-menu it uses the correct command names QSAVE and QUIT,
    rather than the substitute names used on the standard Toolbar's File
    pull-down menu. The SAVE command is not available on either -- you have to
    type it in (or make your own menu item somewhere).
     
    Kent Cooper, AIA, Nov 4, 2004
    #4
  5. tsigwing

    tsigwing Guest

    Seems funny that I have a reactor that I load occasionally that will throw up a message box with the name of the comand that was issued. When I click on the "X" in the upper right corner on the drawing, no command shows up. I have a command reactor that is activated when either "save" "saveas" or "qsave" is issued, and it doesn't run either.
     
    tsigwing, Nov 4, 2004
    #5
  6. Not knowing how your reactor is set up, I wonder whether the "problem" is
    because at the time you pick OK and the Qsave or Saveas happens, it's
    already in the middle of doing a Close or Quit.

    You might get around that by doing what I do when I want to get out of a
    drawing and save any changes. I have menu items (simple macro routines)
    that, among other things, save the drawing first (in two places with QSAVE
    and SAVE, which I think is better than the recent thread involving copying
    the .sv$ file, since if you need it, the extra backup is already a regular
    drawing file). Then they call for Close or Quit, and since the drawing was
    just saved, it doesn't need to ask whether you want to save, and you don't
    need to pick OK. So the saving part is at least not inside the Close or
    Quit command, and maybe it would show your message box.
     
    Kent Cooper, AIA, Nov 4, 2004
    #6
  7. tsigwing

    Jeff Mishler Guest

    If you want to trap for all instances where a drawing might be saved, rather
    than a reactor for the save, savas, qsave commands, you could use a reactor
    for the :vlr-BeginSave event of the vlr-editor-reactor.
    I don't use reactors, but I do use the Events in VBA which seems to me what
    the vlr- functions are duplicating.

    HTH,
     
    Jeff Mishler, Nov 4, 2004
    #7
  8. tsigwing

    wookie Guest

    Does the small X actually run the CLOSE command? or some other command?
    I have an auto purge routine that runs if I type CLOSE, but does not run if I use the X.
     
    wookie, Nov 5, 2004
    #8
  9. tsigwing

    Jürg Menzi Guest

    Hi tsigwing

    The ':VLR-documentToBeDestroyed' event of 'VLR-DocManager-Reactor' fire in
    *all* cases of leaving a document...

    Cheers
     
    Jürg Menzi, Nov 5, 2004
    #9
  10. Well, it's got to be the equivalent of Close (that is, Close is the only
    AutoCAD command that does what the small X does), but maybe it accomplishes
    it by some other means the through the actual command. I don't know of any
    way to tell, since of course the command history disappears as you do it, so
    you can't look back.
     
    Kent Cooper, AIA, Nov 5, 2004
    #10
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.