<?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: Lock Commandline in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9667129#M18838</link>
    <description>&lt;P&gt;Are you talking about a LISP program?&amp;nbsp; There is a delay/pause command that slows the program down to allow for user input.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 21:28:45 GMT</pubDate>
    <dc:creator>cjneper</dc:creator>
    <dc:date>2020-07-31T21:28:45Z</dc:date>
    <item>
      <title>Lock Commandline</title>
      <link>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9666888#M18837</link>
      <description>&lt;P&gt;I think I'm having a problem with some people being too fast for my app to keep up with.&lt;/P&gt;&lt;P&gt;If they are slow it doesn't seem to be a problem but if they are hammering in commands AutoCAD crashes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the comandline wait for instructions to be complete before starting the next?&lt;/P&gt;&lt;P&gt;Or is there a way to disable the commandline until a routine is finished?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does doclock do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 18:32:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9666888#M18837</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2020-07-31T18:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Commandline</title>
      <link>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9667129#M18838</link>
      <description>&lt;P&gt;Are you talking about a LISP program?&amp;nbsp; There is a delay/pause command that slows the program down to allow for user input.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 21:28:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9667129#M18838</guid>
      <dc:creator>cjneper</dc:creator>
      <dc:date>2020-07-31T21:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Commandline</title>
      <link>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9667324#M18839</link>
      <description>&lt;P&gt;It's a Visual Studio app.&lt;/P&gt;&lt;P&gt;I do have a pallette that's a likely cause of the problem but I have spent a lot of time trying to making sure I cancel out of any active command before starting a new one.&lt;/P&gt;&lt;P&gt;I was wondering if the operations from the commandline are stalled (or stacked?) until the previous command has finished.&lt;/P&gt;&lt;P&gt;A script file seems to wait for the previous operation to complete so I assume it does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 03:58:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9667324#M18839</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2020-08-01T03:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Commandline</title>
      <link>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9667374#M18840</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the issue is related to the palette (i.e. a modeless UI), a simple and safe way should be callign custom command methods from the palette as recommended by Kean Walmsley's in &lt;A href="https://www.keanw.com/2011/02/managing-drag-drop-from-a-palette-into-autocad-using-net.html" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;this topic&lt;/STRONG&gt;&lt;/A&gt;.:&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;Once again there’s our important &lt;A href="https://en.wikipedia.org/wiki/Rule_of_thumb" target="_blank" rel="noopener"&gt;rule of thumb&lt;/A&gt; when it comes to implementing a modeless UI: rather than manually locking the current document, it’s safer to define a command – which will implicitly lock the current document – and call that from the UI via SendStringToExecute().&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;Doing so, you let AutoCAD manage the commands stack.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find and example in &lt;A href="http://gilecad.azurewebsites.net/UserInterfaces_en.aspx" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;this tutorial&lt;/STRONG&gt;&lt;/A&gt; (palette section).&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 05:56:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9667374#M18840</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-08-01T05:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Commandline</title>
      <link>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9669600#M18841</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/786488"&gt;@SRSDS&lt;/a&gt; !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great to see you here on .NET Forum.&lt;BR /&gt;&lt;BR /&gt;Did you find a solution? &lt;BR /&gt;If yes, please click on the &lt;FONT color="#008000"&gt;"Accept as Solution"&lt;/FONT&gt; button as then also other community users can easily find and benefit from the information.&lt;BR /&gt;If not please don't hesitate to give an update here in your topic so all members know what ́s the progression on your question is and what might be helpful to achieve what you ́re looking for. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 11:28:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/lock-commandline/m-p/9669600#M18841</guid>
      <dc:creator>lena.talkhina</dc:creator>
      <dc:date>2020-08-03T11:28:31Z</dc:date>
    </item>
  </channel>
</rss>

