<?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: Jig causes entities disappear in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13164976#M340</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your reply.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AcApDocManager::sendStringToExecute() seems to be the only way to solve my problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 09:00:35 GMT</pubDate>
    <dc:creator>yysy112</dc:creator>
    <dc:date>2024-11-21T09:00:35Z</dc:date>
    <item>
      <title>Jig causes entities disappear</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13128206#M336</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During my jig process, if I keep zooming the screen until the "regen" process is called, all of the entities disappear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. It seems built-in jig will prevent the "regen" to be triggered. You can't zoom when a regen limit is hit. How to do that? any examples?&lt;/P&gt;&lt;P&gt;2. Is there any way to regen and show during jig process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 08:47:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13128206#M336</guid>
      <dc:creator>yysy112</dc:creator>
      <dc:date>2024-11-04T08:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Jig causes entities disappear</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13130349#M337</link>
      <description>&lt;P&gt;If I zoom way out in a drawing, begin drawing a line, then start zooming in, eventually I see a message on the status bar saying&lt;/P&gt;&lt;P&gt;“Cannot zoom in further while a command is active”&lt;/P&gt;&lt;P&gt;I also found this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/AutoCAD-Zoom-only-works-up-to-a-certain-scale-when-command-is-active.html" target="_blank"&gt;https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/AutoCAD-Zoom-only-works-up-to-a-certain-scale-when-command-is-active.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 06:23:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13130349#M337</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-11-05T06:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Jig causes entities disappear</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13130673#M338</link>
      <description>&lt;P&gt;hi daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I tried to do my jig process in a command, it just works as you said.&lt;/P&gt;&lt;P&gt;But if my jig process is called by a modeless dialog, the "zooming scale limit" does't work then.&lt;/P&gt;&lt;P&gt;In my case, I have a modeless dialog. I hit a button, a circle is created and the jig process starts.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 09:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13130673#M338</guid>
      <dc:creator>yysy112</dc:creator>
      <dc:date>2024-11-05T09:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Jig causes entities disappear</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13160715#M339</link>
      <description>&lt;P&gt;A modeless dialog runs in "session context" and not in document context. This affects the behaviour of AutoCADs graphic system.&amp;nbsp; Also modeless dialog boxes must handle the&amp;nbsp;&lt;SPAN&gt;WM_ACAD_KEEPFOCUS message&lt;/SPAN&gt;&amp;nbsp;as explained &lt;A href="https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-90046447-0787-4FF8-8E91-870F085931A0" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&amp;nbsp;to keep the focus. I suppose that you must avoid to keep the focus while the jig is running.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The cleanest solution is to register a modal command that executes your jig and start it with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcApDocManager::sendStringToExecute()&lt;/FONT&gt; as explained &lt;A title="Execute Commands from a Modeless dialog" href="https://adndevblog.typepad.com/autocad/2013/01/execute-commands-from-a-modeless-dialog.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Hide and/or "deactivate" your dialog while the command runs and re-activate it when it ends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also use&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;AcAxDocLock lock;
// your jig here...&lt;/LI-CODE&gt;
&lt;P&gt;to lock the current document before you start the jig. Maybe this already helps.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 17:03:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13160715#M339</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2024-11-19T17:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Jig causes entities disappear</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13164976#M340</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your reply.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AcApDocManager::sendStringToExecute() seems to be the only way to solve my problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 09:00:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/jig-causes-entities-disappear/m-p/13164976#M340</guid>
      <dc:creator>yysy112</dc:creator>
      <dc:date>2024-11-21T09:00:35Z</dc:date>
    </item>
  </channel>
</rss>

