<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Trapping Exit of AutoCAD in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873031#M158804</link>
    <description>In r12 selecting Exit AutoCAD under the File menu actually invoked the Quit command. By redefining this command I was able to prompt the user to make sure the drawing was saved when certain conditions were detected.&lt;BR /&gt;
&lt;BR /&gt;
In A2k selecting Exit under the File menu doesn't seem to call the Quit command. My redefinition won't work. Is there a way to trap an attempt to exit AutoCAD and display my custom dialog as I was able to do with r12?</description>
    <pubDate>Sun, 16 Apr 2000 21:24:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-04-16T21:24:33Z</dc:date>
    <item>
      <title>Trapping Exit of AutoCAD</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873031#M158804</link>
      <description>In r12 selecting Exit AutoCAD under the File menu actually invoked the Quit command. By redefining this command I was able to prompt the user to make sure the drawing was saved when certain conditions were detected.&lt;BR /&gt;
&lt;BR /&gt;
In A2k selecting Exit under the File menu doesn't seem to call the Quit command. My redefinition won't work. Is there a way to trap an attempt to exit AutoCAD and display my custom dialog as I was able to do with r12?</description>
      <pubDate>Sun, 16 Apr 2000 21:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873031#M158804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-16T21:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trapping Exit of AutoCAD</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873032#M158805</link>
      <description>I discovered a slick workaround for this problem!&lt;BR /&gt;
&lt;BR /&gt;
Look at the line for Exit in the ACAD.mns file:&lt;BR /&gt;
ID_APP_EXIT    [E&amp;amp;xit]&lt;BR /&gt;
&lt;BR /&gt;
If you look at the ***HELPSTRINGS section, there is _no_ ID_APP_EXIT listed.&lt;BR /&gt;
I found that if you change that helpstring on that line to something else,&lt;BR /&gt;
e.g. ID_My_Exit, you can undefine Exit &amp;amp; roll your own! This also works for&lt;BR /&gt;
the Close menu item.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&lt;BR /&gt;
dcleghorn &lt;DAVE.CLEGHORN&gt; wrote in message&lt;BR /&gt;
news:eeffd59.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
| In r12 selecting Exit AutoCAD under the File menu actually invoked the&lt;BR /&gt;
Quit command. By redefining this command I was able to prompt the user to&lt;BR /&gt;
make sure the drawing was saved when certain conditions were detected.&lt;BR /&gt;
|&lt;BR /&gt;
| In A2k selecting Exit under the File menu doesn't seem to call the Quit&lt;BR /&gt;
command. My redefinition won't work. Is there a way to trap an attempt to&lt;BR /&gt;
exit AutoCAD and display my custom dialog as I was able to do with r12?&lt;/DAVE.CLEGHORN&gt;</description>
      <pubDate>Tue, 25 Apr 2000 21:21:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873032#M158805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-25T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873033#M158806</link>
      <description>This doesn't really solve the problem. There are a&lt;BR /&gt;
few other ways to terminate AutoCAD which don't use&lt;BR /&gt;
any commands (e.g., clicking the X in the caption&lt;BR /&gt;
bar for example). &lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, command redefinition is not the&lt;BR /&gt;
solution here.&lt;BR /&gt;
&lt;BR /&gt;
"R. Robert Bell" wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I discovered a slick workaround for this problem!&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Look at the line for Exit in the ACAD.mns file:&lt;BR /&gt;
&amp;gt; ID_APP_EXIT    [E&amp;amp;xit]&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; If you look at the ***HELPSTRINGS section, there is _no_ ID_APP_EXIT listed.&lt;BR /&gt;
&amp;gt; I found that if you change that helpstring on that line to something else,&lt;BR /&gt;
&amp;gt; e.g. ID_My_Exit, you can undefine Exit &amp;amp; roll your own! This also works for&lt;BR /&gt;
&amp;gt; the Close menu item.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; R. Robert Bell, MCSE&lt;BR /&gt;
&amp;gt; Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; dcleghorn &lt;DAVE.CLEGHORN&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:eeffd59.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; | In r12 selecting Exit AutoCAD under the File menu actually invoked the&lt;BR /&gt;
&amp;gt; Quit command. By redefining this command I was able to prompt the user to&lt;BR /&gt;
&amp;gt; make sure the drawing was saved when certain conditions were detected.&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | In A2k selecting Exit under the File menu doesn't seem to call the Quit&lt;BR /&gt;
&amp;gt; command. My redefinition won't work. Is there a way to trap an attempt to&lt;BR /&gt;
&amp;gt; exit AutoCAD and display my custom dialog as I was able to do with r12?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/&lt;/DAVE.CLEGHORN&gt;</description>
      <pubDate>Wed, 26 Apr 2000 08:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873033#M158806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-26T08:18:29Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873034#M158807</link>
      <description>Yes, it only solves the pull-down menu pick. I thought I had tested it, the&lt;BR /&gt;
first time I discovered this feature, with the X button, but I guess not.&lt;BR /&gt;
:-(&lt;BR /&gt;
&lt;BR /&gt;
Oh, come on, Tony, wasn't it cool?! Who would have thought changing the help&lt;BR /&gt;
string would change the behavior of those two menu selections?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
news:3906A655.9572F00D@worldnet.att.net...&lt;BR /&gt;
| This doesn't really solve the problem. There are a&lt;BR /&gt;
| few other ways to terminate AutoCAD which don't use&lt;BR /&gt;
| any commands (e.g., clicking the X in the caption&lt;BR /&gt;
| bar for example).&lt;BR /&gt;
|&lt;BR /&gt;
| Unfortunately, command redefinition is not the&lt;BR /&gt;
| solution here.&lt;BR /&gt;
|&lt;BR /&gt;
| "R. Robert Bell" wrote:&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; I discovered a slick workaround for this problem!&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; Look at the line for Exit in the ACAD.mns file:&lt;BR /&gt;
| &amp;gt; ID_APP_EXIT    [E&amp;amp;xit]&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; If you look at the ***HELPSTRINGS section, there is _no_ ID_APP_EXIT&lt;BR /&gt;
listed.&lt;BR /&gt;
| &amp;gt; I found that if you change that helpstring on that line to something&lt;BR /&gt;
else,&lt;BR /&gt;
| &amp;gt; e.g. ID_My_Exit, you can undefine Exit &amp;amp; roll your own! This also works&lt;BR /&gt;
for&lt;BR /&gt;
| &amp;gt; the Close menu item.&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; --&lt;BR /&gt;
| &amp;gt; R. Robert Bell, MCSE&lt;BR /&gt;
| &amp;gt; Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; dcleghorn &lt;DAVE.CLEGHORN&gt; wrote in message&lt;BR /&gt;
| &amp;gt; news:eeffd59.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
| &amp;gt; | In r12 selecting Exit AutoCAD under the File menu actually invoked the&lt;BR /&gt;
| &amp;gt; Quit command. By redefining this command I was able to prompt the user&lt;BR /&gt;
to&lt;BR /&gt;
| &amp;gt; make sure the drawing was saved when certain conditions were detected.&lt;BR /&gt;
| &amp;gt; |&lt;BR /&gt;
| &amp;gt; | In A2k selecting Exit under the File menu doesn't seem to call the&lt;BR /&gt;
Quit&lt;BR /&gt;
| &amp;gt; command. My redefinition won't work. Is there a way to trap an attempt&lt;BR /&gt;
to&lt;BR /&gt;
| &amp;gt; exit AutoCAD and display my custom dialog as I was able to do with r12?&lt;BR /&gt;
|&lt;BR /&gt;
| --&lt;BR /&gt;
| /*********************************************************/&lt;BR /&gt;
| /*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
| /* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
| /* ----------------------------------------------------- */&lt;BR /&gt;
| /*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
| /*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
| /*********************************************************/&lt;/DAVE.CLEGHORN&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Wed, 26 Apr 2000 14:14:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873034#M158807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-26T14:14:36Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873035#M158808</link>
      <description>Robert;&lt;BR /&gt;
&lt;BR /&gt;
    It's good to know that. Maybe dcleghorn will benefit&lt;BR /&gt;
directly. For fun, did you notice whether you can re-define&lt;BR /&gt;
File/New also? (I've done very little menu customization.)&lt;BR /&gt;
    For myself, I'm trying reactors for my current task.&lt;BR /&gt;
The :vlr-beginClose reactor seems to trap all these variations&lt;BR /&gt;
of the close event:&lt;BR /&gt;
&lt;BR /&gt;
1. if SDI=0, File/Close (the drawing containing the reactor)&lt;BR /&gt;
                   File/Exit&lt;BR /&gt;
                   Window "exit"  button&lt;BR /&gt;
&lt;BR /&gt;
2. if SDI=1, File/Close&lt;BR /&gt;
                   File/Exit&lt;BR /&gt;
                   File/New&lt;BR /&gt;
                   Window "exit"  button&lt;BR /&gt;
&lt;BR /&gt;
joe&lt;BR /&gt;
&lt;BR /&gt;
----- Original Message -----&lt;BR /&gt;
From: "R. Robert Bell" &lt;ROBERTB&gt;&lt;BR /&gt;
Newsgroups: autodesk.autocad.customization&lt;BR /&gt;
Sent: Tuesday, April 25, 2000 2:21 PM&lt;BR /&gt;
Subject: Re: Trapping Exit of AutoCAD&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I discovered a slick workaround for this problem!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Look at the line for Exit in the ACAD.mns file:&lt;BR /&gt;
&amp;gt; ID_APP_EXIT    [E&amp;amp;xit]&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If you look at the ***HELPSTRINGS section, there is _no_ ID_APP_EXIT&lt;BR /&gt;
listed.&lt;BR /&gt;
&amp;gt; I found that if you change that helpstring on that line to something else,&lt;BR /&gt;
&amp;gt; e.g. ID_My_Exit, you can undefine Exit &amp;amp; roll your own! This also works&lt;BR /&gt;
for&lt;BR /&gt;
&amp;gt; the Close menu item.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; R. Robert Bell, MCSE&lt;BR /&gt;
&amp;gt; Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; dcleghorn &lt;DAVE.CLEGHORN&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:eeffd59.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; | In r12 selecting Exit AutoCAD under the File menu actually invoked the&lt;BR /&gt;
&amp;gt; Quit command. By redefining this command I was able to prompt the user to&lt;BR /&gt;
&amp;gt; make sure the drawing was saved when certain conditions were detected.&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | In A2k selecting Exit under the File menu doesn't seem to call the Quit&lt;BR /&gt;
&amp;gt; command. My redefinition won't work. Is there a way to trap an attempt to&lt;BR /&gt;
&amp;gt; exit AutoCAD and display my custom dialog as I was able to do with r12?&lt;BR /&gt;
&amp;gt;&lt;/DAVE.CLEGHORN&gt;&lt;/ROBERTB&gt;</description>
      <pubDate>Wed, 26 Apr 2000 14:28:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873035#M158808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-26T14:28:59Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873036#M158809</link>
      <description>File/New is easy. No jumping thru hoops (or menu edits) required. Just&lt;BR /&gt;
Undefine New, then create your own (defun C:New () . . .)&lt;BR /&gt;
&lt;BR /&gt;
One of these days, I'm going to have to start some serious development on&lt;BR /&gt;
reactors. Wish I had only 1,000 things to do, instead of millions! Maybe if&lt;BR /&gt;
I change my title from "Net Admin" to "At Home, Don't Bother Me,&lt;BR /&gt;
Programmer"? . . .&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&lt;BR /&gt;
Joe Funk &lt;JOEFUNK&gt; wrote in message&lt;BR /&gt;
news:eeffd59.2@WebX.SaUCah8kaAW...&lt;BR /&gt;
| Robert;&lt;BR /&gt;
|&lt;BR /&gt;
|     It's good to know that. Maybe dcleghorn will benefit&lt;BR /&gt;
| directly. For fun, did you notice whether you can re-define&lt;BR /&gt;
| File/New also? (I've done very little menu customization.)&lt;BR /&gt;
|     For myself, I'm trying reactors for my current task.&lt;BR /&gt;
| The :vlr-beginClose reactor seems to trap all these variations&lt;BR /&gt;
| of the close event:&lt;BR /&gt;
|&lt;BR /&gt;
| 1. if SDI=0, File/Close (the drawing containing the reactor)&lt;BR /&gt;
|                    File/Exit&lt;BR /&gt;
|                    Window "exit"  button&lt;BR /&gt;
|&lt;BR /&gt;
| 2. if SDI=1, File/Close&lt;BR /&gt;
|                    File/Exit&lt;BR /&gt;
|                    File/New&lt;BR /&gt;
|                    Window "exit"  button&lt;BR /&gt;
|&lt;BR /&gt;
| joe&lt;BR /&gt;
|&lt;/JOEFUNK&gt;</description>
      <pubDate>Wed, 26 Apr 2000 14:44:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873036#M158809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-26T14:44:05Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873037#M158810</link>
      <description>"R. Robert Bell" wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Oh, come on, Tony, wasn't it cool?! Who would have thought changing the help&lt;BR /&gt;
&amp;gt; string would change the behavior of those two menu selections?&lt;BR /&gt;
&lt;BR /&gt;
I don't think it has anything to do with the helpstring or the &lt;BR /&gt;
command named "EXIT" (that command is not issued when you pick &lt;BR /&gt;
File|Exit).&lt;BR /&gt;
&lt;BR /&gt;
It's the menu item identifier "ID_APP_EXIT" that associates &lt;BR /&gt;
the action with the menu item. This action, along with a &lt;BR /&gt;
number of others on the file menu, are "hard-wired", so by&lt;BR /&gt;
changing "ID_APP_EXIT", you're changing the hard-wired macro &lt;BR /&gt;
that's associated with the File|Exit menu item, that's all.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Wed, 26 Apr 2000 17:15:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873037#M158810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-26T17:15:59Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873038#M158811</link>
      <description>That's what I meant (not what I said) &lt;VBG&gt;&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
news:3907244F.4307488C@worldnet.att.net...&lt;BR /&gt;
| I don't think it has anything to do with the helpstring or the&lt;BR /&gt;
| command named "EXIT" (that command is not issued when you pick&lt;BR /&gt;
| File|Exit).&lt;BR /&gt;
|&lt;BR /&gt;
| It's the menu item identifier "ID_APP_EXIT" that associates&lt;BR /&gt;
| the action with the menu item. This action, along with a&lt;BR /&gt;
| number of others on the file menu, are "hard-wired", so by&lt;BR /&gt;
| changing "ID_APP_EXIT", you're changing the hard-wired macro&lt;BR /&gt;
| that's associated with the File|Exit menu item, that's all.&lt;BR /&gt;
|&lt;/TONY.TANZILLO&gt;&lt;/VBG&gt;</description>
      <pubDate>Wed, 26 Apr 2000 17:26:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873038#M158811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-26T17:26:58Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873039#M158812</link>
      <description>My advice is to avoid command redefinition. You're taking&lt;BR /&gt;
the right approach with reactors.&lt;BR /&gt;
&lt;BR /&gt;
Joe Funk wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Robert;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;     It's good to know that. Maybe dcleghorn will benefit&lt;BR /&gt;
&amp;gt; directly. For fun, did you notice whether you can re-define&lt;BR /&gt;
&amp;gt; File/New also? (I've done very little menu customization.)&lt;BR /&gt;
&amp;gt;     For myself, I'm trying reactors for my current task.&lt;BR /&gt;
&amp;gt; The :vlr-beginClose reactor seems to trap all these variations&lt;BR /&gt;
&amp;gt; of the close event:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 1. if SDI=0, File/Close (the drawing containing the reactor)&lt;BR /&gt;
&amp;gt;                    File/Exit&lt;BR /&gt;
&amp;gt;                    Window "exit"  button&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 2. if SDI=1, File/Close&lt;BR /&gt;
&amp;gt;                    File/Exit&lt;BR /&gt;
&amp;gt;                    File/New&lt;BR /&gt;
&amp;gt;                    Window "exit"  button&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; joe&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ----- Original Message -----&lt;BR /&gt;
&amp;gt; From: "R. Robert Bell" &lt;ROBERTB&gt;&lt;BR /&gt;
&amp;gt; Newsgroups: autodesk.autocad.customization&lt;BR /&gt;
&amp;gt; Sent: Tuesday, April 25, 2000 2:21 PM&lt;BR /&gt;
&amp;gt; Subject: Re: Trapping Exit of AutoCAD&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &amp;gt; I discovered a slick workaround for this problem!&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Look at the line for Exit in the ACAD.mns file:&lt;BR /&gt;
&amp;gt; &amp;gt; ID_APP_EXIT    [E&amp;amp;xit]&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; If you look at the ***HELPSTRINGS section, there is _no_ ID_APP_EXIT&lt;BR /&gt;
&amp;gt; listed.&lt;BR /&gt;
&amp;gt; &amp;gt; I found that if you change that helpstring on that line to something else,&lt;BR /&gt;
&amp;gt; &amp;gt; e.g. ID_My_Exit, you can undefine Exit &amp;amp; roll your own! This also works&lt;BR /&gt;
&amp;gt; for&lt;BR /&gt;
&amp;gt; &amp;gt; the Close menu item.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; R. Robert Bell, MCSE&lt;BR /&gt;
&amp;gt; &amp;gt; Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; dcleghorn &lt;DAVE.CLEGHORN&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:eeffd59.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; | In r12 selecting Exit AutoCAD under the File menu actually invoked the&lt;BR /&gt;
&amp;gt; &amp;gt; Quit command. By redefining this command I was able to prompt the user to&lt;BR /&gt;
&amp;gt; &amp;gt; make sure the drawing was saved when certain conditions were detected.&lt;BR /&gt;
&amp;gt; &amp;gt; |&lt;BR /&gt;
&amp;gt; &amp;gt; | In A2k selecting Exit under the File menu doesn't seem to call the Quit&lt;BR /&gt;
&amp;gt; &amp;gt; command. My redefinition won't work. Is there a way to trap an attempt to&lt;BR /&gt;
&amp;gt; &amp;gt; exit AutoCAD and display my custom dialog as I was able to do with r12?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/&lt;/DAVE.CLEGHORN&gt;&lt;/ROBERTB&gt;</description>
      <pubDate>Wed, 26 Apr 2000 18:02:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873039#M158812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-26T18:02:08Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873040#M158813</link>
      <description>If only reactors weren't such a PITA with VLisp... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator (or, Modern-day Wizard)&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
news:39072F20.D9DCF328@worldnet.att.net...&lt;BR /&gt;
| My advice is to avoid command redefinition. You're taking&lt;BR /&gt;
| the right approach with reactors.&lt;BR /&gt;
|&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Wed, 26 Apr 2000 20:54:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trapping-exit-of-autocad/m-p/873040#M158813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-04-26T20:54:09Z</dc:date>
    </item>
  </channel>
</rss>

