<?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 Re: Disable the built in AutoCAD  &amp;quot;SAVEALL &amp;quot; command in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642795#M15115</link>
    <description>&lt;P&gt;P.S.: As far as I see there is no command with Save All menu item... So you have not veto command.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 15:18:17 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2021-09-23T15:18:17Z</dc:date>
    <item>
      <title>Disable the built in AutoCAD  "SAVEALL " command</title>
      <link>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642667#M15113</link>
      <description>&lt;P&gt;AutoCAD Mechanical 2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are needing to disable or remove the SAVEALL command as an option. This is the SAVEALL that shows up when you right click a filetab,not the EXPRESS version. I tried using the code below ,not knowing the actual command name, to veto the command. While I was debugging all I get is a series of QSAVE's. I do not want to stop the QSAVE command but I didn't see any flag indicating this came from SAVEALL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;private void OnDocumentLockModeChanged(object sender, DocumentLockModeChangedEventArgs e)
{
if (string.Compare(e.GlobalCommandName, "SAVEALL", true) == 0)

{

e.Veto();

}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:47:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642667#M15113</guid>
      <dc:creator>gotMorris</dc:creator>
      <dc:date>2021-09-23T14:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Disable the built in AutoCAD  "SAVEALL " command</title>
      <link>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642774#M15114</link>
      <description>&lt;P&gt;You can try to use MGDDBG (&lt;A href="https://adn-cis.org/assets/gallery/AutoCAD/MgdDbg.zip" target="_blank" rel="noopener"&gt;https://adn-cis.org/assets/gallery/AutoCAD/MgdDbg.zip&lt;/A&gt;) in order to check command name (if this menu item start command). You have to use &lt;STRONG&gt;Events... &lt;/STRONG&gt;submenu in MGDDBG menu:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexanderRivilis_0-1632409886676.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/968865iD6E7D7CEF99B4AFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexanderRivilis_0-1632409886676.png" alt="AlexanderRivilis_0-1632409886676.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="изображение.png" style="width: 597px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/968868i33FF99A0F199DB87/image-size/large?v=v2&amp;amp;px=999" role="button" title="изображение.png" alt="изображение.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorAlexanderRivilis_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Sep 2021 15:13:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642774#M15114</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2021-09-23T15:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Disable the built in AutoCAD  "SAVEALL " command</title>
      <link>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642795#M15115</link>
      <description>&lt;P&gt;P.S.: As far as I see there is no command with Save All menu item... So you have not veto command.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 15:18:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642795#M15115</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2021-09-23T15:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Disable the built in AutoCAD  "SAVEALL " command</title>
      <link>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642917#M15116</link>
      <description>&lt;P&gt;There is indeed a command "SaveAll" available at command line, which is from Express tool). It can be easily disabled, say, by loading a Lisp command like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:SaveAll ()
	(princ "\nSaveAll command does nothing!")
	(princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the "Save All" option in the context menu when user right-clicks the drawing window's tab (or even the drawing window's top frame), it seems, does not call the "SaveAll" command from Express Tool. I guess it execute some code that actually loop through the documents and call QSAVE on each one, according to your discovery. Thus, you cannot disable it by simply redefine or undefine the command "SaveAll", nor you can handle in in DocumentLockModeChanged event by matching command name "SAVEALL".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure since when such a context menu was made available, never used it. It seems there is not way to customize it (adding/removing items in that context menu).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 15:59:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/disable-the-built-in-autocad-quot-saveall-quot-command/m-p/10642917#M15116</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2021-09-23T15:59:44Z</dc:date>
    </item>
  </channel>
</rss>

