<?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: Document '.............................' has a command in progress in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444258#M17945</link>
    <description>Oh another note is that i am using 'acedRegCmds-&amp;gt;addCommand' to register my custom commands in conjunction with acedGetPoint(.......)&lt;BR /&gt;
&lt;BR /&gt;
Thanks

Edited by: fishtoasty on Mar 9, 2009 2:31 PM</description>
    <pubDate>Mon, 09 Mar 2009 14:30:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-03-09T14:30:53Z</dc:date>
    <item>
      <title>Document '.............................' has a command in progress</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444257#M17944</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
If i start my own custom command (Acad 2008) that requires the user to pick points in multiple viewports, after the command has finished processing i seem to get multiple printouts to the output window saying Document '{DRAWING NAME}' has a command in progress, Hit Enter To Cancel or [Retry]:&lt;BR /&gt;
&lt;BR /&gt;
This seems to only happen when switching between different viewports making them active whilst a command is in progress.&lt;BR /&gt;
&lt;BR /&gt;
I am drawing my own graphics to the viewports using WorldDraw/Viewport Draw for that entity, if that means anything for this problem to occur...&lt;BR /&gt;
&lt;BR /&gt;
Why is this happening and does anyone know how it can be resolved?&lt;BR /&gt;
&lt;BR /&gt;
Many Thanks</description>
      <pubDate>Mon, 09 Mar 2009 13:37:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444257#M17944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-09T13:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Document '.............................' has a command in progress</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444258#M17945</link>
      <description>Oh another note is that i am using 'acedRegCmds-&amp;gt;addCommand' to register my custom commands in conjunction with acedGetPoint(.......)&lt;BR /&gt;
&lt;BR /&gt;
Thanks

Edited by: fishtoasty on Mar 9, 2009 2:31 PM</description>
      <pubDate>Mon, 09 Mar 2009 14:30:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444258#M17945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-09T14:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Document '.............................' has a command in progress</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444259#M17946</link>
      <description>During my command i am accessing an object via its objectId as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
lockActiveDocument(); //own function that locks the active document&lt;BR /&gt;
&lt;BR /&gt;
es = acdbOpenObject(blah, blahId, AcDb::kForWrite);&lt;BR /&gt;
&lt;BR /&gt;
unlockActiveDocument(); //own function that unlocks the active document&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
It seems unlocking the document causes this issue whilst my command is in progress.&lt;BR /&gt;
Is it safe to lock the active document without the subsequent unlock? As this seems to resolve my problem.&lt;BR /&gt;
Will my command that is just defined as being ACRX_CMD_TRANSPARENT be unlocking the document itself once it completes its operation?&lt;BR /&gt;
Is there anyway i can detect whether a command is currently in progress??&lt;BR /&gt;
&lt;BR /&gt;
Many Thanks</description>
      <pubDate>Tue, 10 Mar 2009 11:59:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444259#M17946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-10T11:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Document '.............................' has a command in progress</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444260#M17947</link>
      <description>Quote taken from documentation seems to answer my question:&lt;BR /&gt;
&lt;BR /&gt;
"Applications should normally never have to lock or unlock the current document. Commands registered with addCommand() or aceddefun() will have the current document locked before starting, and unlocked after ending"&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 10 Mar 2009 12:54:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/document-has-a-command-in-progress/m-p/2444260#M17947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-10T12:54:45Z</dc:date>
    </item>
  </channel>
</rss>

