<?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: Cursor position in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13159664#M1868</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm not sure to fully understand what you're trying to achieve but it seems to me you should use a Jig instead (search for DrawJig and EntityJig in this forum).&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2024 09:40:34 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2024-11-19T09:40:34Z</dc:date>
    <item>
      <title>Cursor position</title>
      <link>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13159487#M1867</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I made a few commands that prompt the user for clicking where something should be inserted in the current space. I use the PointMonitorEventHandler handler and it words perfectly fine. But the object that must be inserted starts following cursor position only &lt;U&gt;after&lt;/U&gt; I started moving said cursor. In other words, the&amp;nbsp;PointMonitor event is fired only &lt;U&gt;after&lt;/U&gt; the cursor started moving. So, in order for the inserted object to be placed at cursor position as soon as I prompt the user, I need to know the cursor position before I insert it. I found a few topics online about this (&lt;A href="https://forums.autodesk.com/t5/objectarx/get-mouse-position/td-p/4682337," target="_blank"&gt;https://forums.autodesk.com/t5/objectarx/get-mouse-position/td-p/4682337,&lt;/A&gt; &lt;A href="https://spiderinnet1.typepad.com/blog/2015/12/get-cursor-position-in-current-ucs-using-autocad-net-addin-wizard-acadnetaddinwizardanaw.html," target="_blank"&gt;https://spiderinnet1.typepad.com/blog/2015/12/get-cursor-position-in-current-ucs-using-autocad-net-addin-wizard-acadnetaddinwizardanaw.html,&lt;/A&gt; &lt;A href="https://adndevblog.typepad.com/autocad/2013/08/get-mouse-cursor-position-without-event.html" target="_blank"&gt;https://adndevblog.typepad.com/autocad/2013/08/get-mouse-cursor-position-without-event.html&lt;/A&gt;), but I'm having trouble understanding or implementing them. Any ideas? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 08:38:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13159487#M1867</guid>
      <dc:creator>jptallano</dc:creator>
      <dc:date>2024-11-19T08:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor position</title>
      <link>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13159664#M1868</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm not sure to fully understand what you're trying to achieve but it seems to me you should use a Jig instead (search for DrawJig and EntityJig in this forum).&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 09:40:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13159664#M1868</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-11-19T09:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor position</title>
      <link>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13159833#M1869</link>
      <description>&lt;P&gt;Yes, my explanation in English may be unclear, so here goes in French so we understand each other:&lt;/P&gt;&lt;P&gt;Bonjour Gilles,&lt;/P&gt;&lt;P&gt;En fait, j'ai tout simplement besoin de connaître les coordonnées du curseur, sans avoir à utiliser l'événement PointMonitor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;English translation for forum readers:&lt;/P&gt;&lt;P&gt;Actually, I need the cursor's position, without having to use the PointMonitor event.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 11:25:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13159833#M1869</guid>
      <dc:creator>jptallano</dc:creator>
      <dc:date>2024-11-19T11:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor position</title>
      <link>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13161214#M1870</link>
      <description>&lt;P&gt;Using a PointMonitor to do dynamic dragging is not advisable, because repeatedly updating database-resident objects with each cursor movement will generate massive amounts of undo information and can involve significant memory overhead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AutoCAD doesn't drag objects in the database, it creates clones of them and modifies those, which are not database-resident and have no undo history. It is those clones that are what you see when dragging objects.. It leaves the original objects as-is and only modifies them once, after the user specifies a point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Jig does not drag objects in the database, and will provide you with the current cursor position. You can find plenty of &lt;A href="https://forums.autodesk.com/t5/net/blockreference-jig/m-p/4929330" target="_blank" rel="noopener"&gt;examples&lt;/A&gt; of its use by searching this discussion group. The Jig's AcquirePoint() method will return the current cursor position on the first call and doesn't suffer from the problem that PointMonitor has.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 21:10:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13161214#M1870</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-11-19T21:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor position</title>
      <link>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13162254#M1871</link>
      <description>&lt;P&gt;Ok then, let's go jig! &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 08:23:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cursor-position/m-p/13162254#M1871</guid>
      <dc:creator>jptallano</dc:creator>
      <dc:date>2024-11-20T08:23:12Z</dc:date>
    </item>
  </channel>
</rss>

