<?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: Quiescent state and Command Line in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/quiescent-state-and-command-line/m-p/7143587#M31039</link>
    <description>&lt;P&gt;You have to create your command with flag &lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;CommandFlags&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;.Session&lt;/SPAN&gt;:&lt;/P&gt;
&lt;PRE&gt;[CommandMethod("MyTest", &lt;U&gt;CommandFlags.Session&lt;/U&gt;)]
public void MyTestNet()
{
//...
}
&lt;/PRE&gt;</description>
    <pubDate>Sat, 10 Jun 2017 22:36:12 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2017-06-10T22:36:12Z</dc:date>
    <item>
      <title>Quiescent state and Command Line</title>
      <link>https://forums.autodesk.com/t5/net-forum/quiescent-state-and-command-line/m-p/7143465#M31038</link>
      <description>&lt;P&gt;I am seeing a "document busy" message when using a custom command-line command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose of the command-line command is to check to see if a newer version of the currently opened drawing is available in other locations.&lt;/P&gt;&lt;P&gt;A check is made, and if a newer version of the document is available, the current document should close, the new version would be downloaded and would overwrite the older version, and the drawing would be reopened and made the active drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like as soon as the command is run the current drawing is marked as busy. &amp;nbsp;I can see that the drawing is marked as "&lt;SPAN&gt;not quiescent". &amp;nbsp;At that point, any attempt to close the drawing programmatically fails. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm able to run this command successfully from an menu item.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestion for how to get around this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 20:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/quiescent-state-and-command-line/m-p/7143465#M31038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-10T20:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Quiescent state and Command Line</title>
      <link>https://forums.autodesk.com/t5/net-forum/quiescent-state-and-command-line/m-p/7143587#M31039</link>
      <description>&lt;P&gt;You have to create your command with flag &lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;CommandFlags&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;.Session&lt;/SPAN&gt;:&lt;/P&gt;
&lt;PRE&gt;[CommandMethod("MyTest", &lt;U&gt;CommandFlags.Session&lt;/U&gt;)]
public void MyTestNet()
{
//...
}
&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2017 22:36:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/quiescent-state-and-command-line/m-p/7143587#M31039</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-06-10T22:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Quiescent state and Command Line</title>
      <link>https://forums.autodesk.com/t5/net-forum/quiescent-state-and-command-line/m-p/7143685#M31040</link>
      <description>&lt;P&gt;I need to test this more, but I think this will fix the problem.&lt;/P&gt;&lt;P&gt;What confuses me though is that the flag&amp;nbsp;isQuiescent for the document is still set to false -- probably because my command-line command is running.&lt;/P&gt;&lt;P&gt;I had been looking at this flag previously to determine whether or not I could delete a document or not.&lt;/P&gt;&lt;P&gt;But in this case, even though the flag was set to false, I still seem to be able to delete it.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2017 00:49:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/quiescent-state-and-command-line/m-p/7143685#M31040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-11T00:49:03Z</dc:date>
    </item>
  </channel>
</rss>

