<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307892#M61587</link>
    <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;You just don't have your defun doing anything. Try &lt;BR /&gt;
this.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;ThisDrawing.SendCommand("(defun C:Saveas () (princ &lt;BR /&gt;
""This command has been redefined."")(princ))" &amp;amp; vbCr)&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;-- &lt;BR /&gt;Ed&lt;BR /&gt;--&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"willemschwarte" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:willem@giskit.nl"&amp;gt;willem@giskit.nl&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f17db2d.2@WebX.maYIadrTaRb"&amp;gt;news:f17db2d.2@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Well, &lt;BR /&gt;
  I tried this (see below), it's in the EndOpen event, since the drawings are &lt;BR /&gt;
  opened thru my app. But, Only the UNDEFINE sendcommand works, the defun &lt;BR /&gt;
  command is ignored. When I type the defun command in ACAD's command line, it &lt;BR /&gt;
  works, so it's almost like these commands can't be executed thru my vb app.? &lt;BR /&gt;
  &lt;P&gt;&lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Private Sub myAutoCadApp_EndOpen(ByVal FileName As String) Handles &lt;BR /&gt;
  myAutoCadApp.EndOpen &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;myAutoCadApp.ActiveDocument.SendCommand("UNDEFINE" &amp;amp; vbTab &amp;amp; &lt;BR /&gt;
  "SAVEAS" &amp;amp; vbCr) &lt;BR /&gt;
  &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;myAutoCadApp.ActiveDocument.SendCommand("(defun C:SAVEAS &lt;BR /&gt;
  () ())" &amp;amp; vbCr) &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 05 Aug 2003 06:59:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-08-05T06:59:52Z</dc:date>
    <item>
      <title>[VB.NET] Disable SAVE Dialog ?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307888#M61583</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a VB.NET application that I'm writing, and I want to disable the saveas dialog. &lt;BR /&gt;
Simply I can set FILEDIA to 0, but then all dialogs with files are not shown. So i need e.d. when saveas is chosen disable this and after saving, enable it. &lt;BR /&gt;
&lt;BR /&gt;
But on my beginCommand it's too late to disable filedia, because this is then fired after the saveas result. &lt;BR /&gt;
&lt;BR /&gt;
Is there another way to do this in VB.NET?</description>
      <pubDate>Mon, 04 Aug 2003 07:05:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307888#M61583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-04T07:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: [VB.NET] Disable SAVE Dialog ?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307889#M61584</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Have you thought about redefining the Saveas &lt;BR /&gt;
command to use yours instead?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;-- &lt;BR /&gt;Ed&lt;BR /&gt;--&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"willem" &amp;lt;&lt;A href="mailto:willem@giskit.l"&gt;willem@giskit.l&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f17db2d.-1@WebX.maYIadrTaRb"&amp;gt;news:f17db2d.-1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Hi, &lt;BR /&gt;
&lt;BR /&gt;
  &lt;P&gt;I have a VB.NET application that I'm writing, and I want to disable the &lt;BR /&gt;
  saveas dialog. &lt;BR /&gt;Simply I can set FILEDIA to 0, but then all dialogs with &lt;BR /&gt;
  files are not shown. So i need e.d. when saveas is chosen disable this and &lt;BR /&gt;
  after saving, enable it. &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;But on my beginCommand it's too late to disable filedia, because this is &lt;BR /&gt;
  then fired after the saveas result. &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Is there another way to do this in VB.NET?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 04 Aug 2003 08:01:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307889#M61584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-04T08:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: [VB.NET] Disable SAVE Dialog ?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307890#M61585</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Are you trying not get the saveas prompt when &lt;BR /&gt;
closing docs via VB/VBA?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;or am I missing this comletely?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Andy&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"willem" &amp;lt;&lt;A href="mailto:willem@giskit.l"&gt;willem@giskit.l&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f17db2d.-1@WebX.maYIadrTaRb"&amp;gt;news:f17db2d.-1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Hi, &lt;BR /&gt;
&lt;BR /&gt;
  &lt;P&gt;I have a VB.NET application that I'm writing, and I want to disable the &lt;BR /&gt;
  saveas dialog. &lt;BR /&gt;Simply I can set FILEDIA to 0, but then all dialogs with &lt;BR /&gt;
  files are not shown. So i need e.d. when saveas is chosen disable this and &lt;BR /&gt;
  after saving, enable it. &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;But on my beginCommand it's too late to disable filedia, because this is &lt;BR /&gt;
  then fired after the saveas result. &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Is there another way to do this in VB.NET?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 04 Aug 2003 11:56:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307890#M61585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-04T11:56:26Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307891#M61586</link>
      <description>Well, I tried this (see below), it's in the EndOpen event, since the drawings are opened thru my app. But, Only the UNDEFINE sendcommand works, the defun command is ignored. When I type the defun command in ACAD's command line, it works, so it's almost like these commands can't be executed thru my vb app.?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Private Sub myAutoCadApp_EndOpen(ByVal FileName As String) Handles myAutoCadApp.EndOpen&lt;BR /&gt;
&lt;BR /&gt;
   myAutoCadApp.ActiveDocument.SendCommand("UNDEFINE" &amp;amp; vbTab &amp;amp; "SAVEAS" &amp;amp; vbCr)&lt;BR /&gt;
   myAutoCadApp.ActiveDocument.SendCommand("(defun C:SAVEAS () ())" &amp;amp; vbCr)&lt;BR /&gt;
    &lt;BR /&gt;
End Sub</description>
      <pubDate>Tue, 05 Aug 2003 00:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307891#M61586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-05T00:15:36Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307892#M61587</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;You just don't have your defun doing anything. Try &lt;BR /&gt;
this.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;ThisDrawing.SendCommand("(defun C:Saveas () (princ &lt;BR /&gt;
""This command has been redefined."")(princ))" &amp;amp; vbCr)&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;-- &lt;BR /&gt;Ed&lt;BR /&gt;--&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"willemschwarte" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:willem@giskit.nl"&amp;gt;willem@giskit.nl&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f17db2d.2@WebX.maYIadrTaRb"&amp;gt;news:f17db2d.2@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Well, &lt;BR /&gt;
  I tried this (see below), it's in the EndOpen event, since the drawings are &lt;BR /&gt;
  opened thru my app. But, Only the UNDEFINE sendcommand works, the defun &lt;BR /&gt;
  command is ignored. When I type the defun command in ACAD's command line, it &lt;BR /&gt;
  works, so it's almost like these commands can't be executed thru my vb app.? &lt;BR /&gt;
  &lt;P&gt;&lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Private Sub myAutoCadApp_EndOpen(ByVal FileName As String) Handles &lt;BR /&gt;
  myAutoCadApp.EndOpen &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;myAutoCadApp.ActiveDocument.SendCommand("UNDEFINE" &amp;amp; vbTab &amp;amp; &lt;BR /&gt;
  "SAVEAS" &amp;amp; vbCr) &lt;BR /&gt;
  &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;myAutoCadApp.ActiveDocument.SendCommand("(defun C:SAVEAS &lt;BR /&gt;
  () ())" &amp;amp; vbCr) &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 05 Aug 2003 06:59:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-disable-save-dialog/m-p/307892#M61587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-05T06:59:52Z</dc:date>
    </item>
  </channel>
</rss>

