<?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: changing cursor position via code? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12709700#M4495</link>
    <description>&lt;P&gt;that was a great idea. thank you sir&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2024 14:37:11 GMT</pubDate>
    <dc:creator>a.kouchakzadeh</dc:creator>
    <dc:date>2024-04-15T14:37:11Z</dc:date>
    <item>
      <title>changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706077#M4486</link>
      <description>&lt;P&gt;Hello ever one.&lt;BR /&gt;Im wondering is there any way to set the cursor position via AutoCAD.NET API?&lt;/P&gt;&lt;P&gt;Im willing to set the cursor on a centroid of a region.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 06:23:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706077#M4486</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2024-04-13T06:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706092#M4487</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if one of these solutions work for you . . untried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.theswamp.org/index.php?topic=20574.0" target="_blank"&gt;https://www.theswamp.org/index.php?topic=20574.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 06:46:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706092#M4487</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2024-04-13T06:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706156#M4488</link>
      <description>&lt;P&gt;Neh, I saw that post before posting to this forum. I get an error on:&lt;/P&gt;&lt;P&gt;System.Drawing.Point ToThePoint = ed.PointToScreen(new Point3d(0, 0, 0), viewPortNumber);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"cannot convert System.Windows.Point to System.Drawing.Point"&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 07:58:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706156#M4488</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2024-04-13T07:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706448#M4489</link>
      <description>&lt;P&gt;Editor.PointToScreen() returns System.Windows.Point since AutoCAD 2013(?, cannot remember clearly). It did return System.Drawing.Point in older versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to convert from System.Windows.Point to System.Drawing.Point (or the other way around) you can then call:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Application.ToSystemDrawingPoint/Size(System.Windows.Point/Size)&lt;/P&gt;
&lt;P&gt;Application.ToSystemWindowsPoint/Size(System.Drawing.Point/Size)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you might want to explain/describe under what circumstance you want to set mouse cursor at certain position. Or you actually want to set an UI (floating form, context menu...) at the current mouse cursor location? I do not believe there is AutoCAD .NET API to let one to directly place the mouse cursor.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 13:33:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706448#M4489</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-04-13T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706469#M4490</link>
      <description>&lt;P&gt;Hello Mr. Yuan.&lt;/P&gt;&lt;P&gt;I hope you are doing fine sir.&lt;/P&gt;&lt;P&gt;I have a jig class which jigs the triangle object. Im willing to move the cursor position to center of the circle after user is done with jigging that object (i.e. SamplerStatus returns PromptStatus.OK).&lt;/P&gt;&lt;P&gt;than, Im gonna jig the circle. how ever, Im not gonna update jig unless the cursor is within region B6.&lt;/P&gt;&lt;P&gt;I want to move the cursor to that position at first place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1349359i1AA5F8E3A34E37AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 13:58:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12706469#M4490</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2024-04-13T13:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12707482#M4491</link>
      <description>&lt;P&gt;I have tried this, but its not working properly:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;int viewPortNumber = Convert.ToInt32(ACAD.GetSystemVariable("CVPORT"));

System.Drawing.Point ToThePoint = Application.ToSystemDrawingPoint(
    ed.PointToScreen(new Point3d(0, 0, 0), viewPortNumber));

Cursor.Position = ToThePoint;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 11:10:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12707482#M4491</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2024-04-14T11:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12707613#M4492</link>
      <description>&lt;P&gt;Based on your description (message 4), I do not think to set mouse cursor at a fixed position (the circle's center) when the cursor is hovering inside the circle while user drags the triangle is good idea ( even you can do so &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; user might think AutoCAD is frozen.&amp;nbsp; What you should do is that as soon as the mouse cursor hovers inside the circle, you some how highlight the circle's center and the highlight disappears when the cursor moves away. You could use OSnapOverrule, of course. But in this case, simply using TransientGraphics would be much easier/sufficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the triangle Jig would work this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its Sample() method would return NoChange if the mouse cursor does not hover inside the circle and the triangle remains at its original position; as soon as the cursor is inside the circle,&amp;nbsp; Sample() returns OK, the circle center is highlighted and the ghost triangle moves to the circle's center; user clicks anywhere inside the circle completes the triangle jig move.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, the triangle jig only makes sense if there are multiple circles as the potential targets, I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The point is, you do not use code to fix cursor's position (in your case, you want to fix it at the center of the circle, right), which leads the unsmooth mouse move. Instead, you allow user to mouse cursor freely and provide visual hint when the cursor is at certain position. That is the main purpose of using Jig.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 13:38:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12707613#M4492</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-04-14T13:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12707749#M4493</link>
      <description>&lt;P&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;Im jigging two objects. first the triangle. than the circle object. cursor can freely move to jig the triangle object. after user clicks, triangle position is fixed and its time to jig the circle. in order to jig the circle , user has to move the cursor within the right region at first place. my code wont move the circle unless cursor is inside the right region. because that object shouldn't move out of that specific region.&lt;/P&gt;&lt;P&gt;highlighting the circle is a good idea, but I would prefer if I could initially set the cursor location to the desired point inside that specific region so user wont get confused.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 15:54:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12707749#M4493</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2024-04-14T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12709455#M4494</link>
      <description>&lt;P&gt;OK, your question does not have anything to do with the first triangle jig. The actual issue you have is when a jig (the circle jig, in your case) starts, you want to moving entity (circle) inside a given boundary, regardless where the moving entity's original position is (inside or outside the target boundary), thus your thought to set the cursor's position inside the boundary when the jig starts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, you should not try to set the cursor position. Instead, you should constrain the ghost image of the moving entity only appears inside the boundary regardless where user moves the mouse cursor to. That is, when the cursor is outside the boundary, you would calculate the moving entity's position inside the boundary, so that its distance to the mouse cursor is shortest. Following code and the video clip shows the concept of doing it. For simplicity, I use a Circle as the constraining boundary. Obviously, since your boundary a rectangle and the moving entity is a circle, in order to dragging the moving circle near the rectangle's corners without letting the circle cross the boundary, you may want to create a boundary in memory for calculating purpose, which should have round corner with the fillet radius equal to the moving circle's. Again, the code is only meant to show the idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.GraphicsInterface;
using System;

namespace AreaIntersectionJig
{
    public class AreaConstrainedJig : DrawJig, IDisposable
    {
        private readonly Document _dwg;
        private readonly Database _db;
        private readonly Editor _ed;

        private Transaction _transaction = null;
        private Circle _movingCircle = null;
        private Circle _boundary = null;

        private Point3d _currPoint;
        private Point3d _prevPoint;

        public AreaConstrainedJig(Document dwg)
        {
            _dwg = dwg;
            _db = _dwg.Database;
            _ed= _dwg.Editor;
            _transaction = _db.TransactionManager.StartTransaction();
        }

        public void Dispose()
        {
            _transaction.Dispose();
        }

        public void Drag()
        {
            if (!SelectWorkObjects(out _movingCircle, out _boundary))
            {
                _ed.WriteMessage("\n*Cancel*\n");
                return;
            }

            _currPoint = _movingCircle.Center;
            _prevPoint = _currPoint;
            _movingCircle.Highlight();

            var res = _ed.Drag(this);
            
            if (res.Status == PromptStatus.OK)
            {
                _transaction.Commit();
            }
            else
            {
                _transaction.Abort();
            }

            _movingCircle.Unhighlight();
        }

        protected override SamplerStatus Sampler(JigPrompts prompts)
        {
            var opt = new JigPromptPointOptions(
                "\nMove selected circle to area within circle boundary:");
            var res = prompts.AcquirePoint(opt);
            if (res.Status== PromptStatus.OK)
            {
                _prevPoint= _currPoint;
                _currPoint = CalculateMovingCircleCenter(res.Value);
                if (_currPoint==_prevPoint)
                {
                    return SamplerStatus.NoChange;
                }
                else
                {
                    var mt=Matrix3d.Displacement(_prevPoint.GetVectorTo(_currPoint));
                    _movingCircle.TransformBy(mt);
                    return SamplerStatus.OK;
                }
            }
            else
            {
                return SamplerStatus.Cancel;
            }
        }

        protected override bool WorldDraw(WorldDraw draw)
        {
            return draw.Geometry.Draw(_movingCircle);
        }

        #region private methods

        private bool SelectWorkObjects(out Circle circle, out Circle boundary)
        {
            circle = null;
            boundary = null;

            var opts = new PromptEntityOptions("\nSelect circle to move:");
            opts.SetRejectMessage("\bInvalid: not a CIRCLE.");
            opts.AddAllowedClass(typeof(Circle), true);
            var res=_ed.GetEntity(opts);
            if (res.Status == PromptStatus.OK)
            {
                var circleId = res.ObjectId;

                while (true)
                {
                    opts = new PromptEntityOptions("\nSelect a circle boundary:");
                    opts.SetRejectMessage("\nInvalid: not a CIRCLE.");
                    opts.AddAllowedClass(typeof(Circle), true);
                    res = _ed.GetEntity(opts);
                    if (res.Status == PromptStatus.OK)
                    {
                        _boundary = (Circle)_transaction.GetObject(res.ObjectId, OpenMode.ForRead);
                        circle=(Circle)_transaction.GetObject(circleId, OpenMode.ForWrite);
                        break;
                    }
                    else
                    {
                        return false;
                    }
                }
            }
            else
            {
                return false;
            }

            return true;
        }

        private Point3d CalculateMovingCircleCenter(Point3d cursorPoint)
        {
            if (IsCursorInsideBoundary(cursorPoint))
            {
                var closestPt = _boundary.GetClosestPointTo(cursorPoint, false);
                var distToBoundary = cursorPoint.DistanceTo(closestPt);
                if (distToBoundary&amp;gt;=_movingCircle.Radius || closestPt.IsEqualTo(cursorPoint))
                {
                    return cursorPoint;
                }
                else
                {
                    try
                    {
                        Point3d centerPt;
                        using (var ray = new Ray())
                        {
                            ray.BasePoint = cursorPoint;
                            ray.SecondPoint = cursorPoint;
                            centerPt = ray.GetPointAtDist(_movingCircle.Radius);
                        }
                        return centerPt;
                    }
                    catch
                    {
                        return _currPoint;
                    }
                }
            }
            else
            {
                Point3d centerPt;
                var closestPt = _boundary.GetClosestPointTo(cursorPoint, false);
                using (var ray = new Ray())
                {
                    ray.BasePoint = cursorPoint;
                    ray.SecondPoint = closestPt;
                    var dist = cursorPoint.DistanceTo(closestPt) + _movingCircle.Radius;
                    centerPt = ray.GetPointAtDist(dist);
                }
                return centerPt;
            }
        }

        private bool IsCursorInsideBoundary(Point3d cursorPoint)
        {
            var dist= cursorPoint.DistanceTo(_boundary.Center);
            return dist &amp;lt;= _boundary.Radius;
        }

        #endregion
    }
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To run the jig:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        [CommandMethod("DragInside")]
        public static void DragEntityInside()
        {
            var dwg = CadApp.DocumentManager.MdiActiveDocument;
            var editor = dwg.Editor;

            using (var jig=new AreaConstrainedJig(dwg))
            {
                jig.Drag();
            }
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6350966032112w862h540r919" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6350966032112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6350966032112w862h540r919');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6350966032112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 13:30:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12709455#M4494</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-04-15T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12709700#M4495</link>
      <description>&lt;P&gt;that was a great idea. thank you sir&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 14:37:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/12709700#M4495</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2024-04-15T14:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/13765369#M85605</link>
      <description>&lt;P&gt;I've found this post when I looked for a way to set the autocad cursor to a set position and if someone does also, there's a solution below.&lt;/P&gt;&lt;P&gt;I am jigging a line, then the user uses a keyword to get distance from editor (ed.GetDistance(opts)).&lt;BR /&gt;My idea was to record the mouse position at the moment the keyword was invoked and restore its' position when the user finishes acquiring distance (because mouse is moved when editor asks for a distance). I feel this is necessary in my case because, when the user jigs the line, it would disappear when the keyword for distance is entered, so I would clone the jigged line and temporarily add it to db to show it while the user gets the distance and deleted later.&lt;BR /&gt;when the user returned from the distance acquiring, the jigged lines' end would jump to the new location and I thought it had a disruptive effect on the flow of the jig. Hence I recorded the position and restored the cursor to the recorded position when the distance part was finished.&lt;/P&gt;&lt;P&gt;Now it seems Autocad cannot set cursor position directly, so we use Win api for that. First a helper class:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static class Win32Cursor
{
    [StructLayout(LayoutKind.Sequential)]
    private struct POINT
    {
        public int X;
        public int Y;
    }

    [DllImport("user32.dll", SetLastError = true)]
    private static extern bool GetCursorPos(out POINT lpPoint);

    [DllImport("user32.dll", SetLastError = true)]
    private static extern bool SetCursorPos(int X, int Y);

    public static (int X, int Y) GetPosition()
    {
        if (!GetCursorPos(out var pt))
        {
            throw new InvalidOperationException("GetCursorPos failed.");
        }
        return (pt.X, pt.Y);
    }

    public static void SetPosition(int x, int y)
    {
        if (!SetCursorPos(x, y))
        {
            throw new InvalidOperationException("SetCursorPos failed.");
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Then:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;//code

//Remember original cursor position
var (cx, cy) = Win32Cursor.GetPosition();

//code

//Return cursor to remembered position
Win32Cursor.SetPosition(cx, cy);

//code&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 08:24:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/13765369#M85605</guid>
      <dc:creator>MGO-Norsyn</dc:creator>
      <dc:date>2025-08-13T08:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/13765648#M85610</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2955811"&gt;@MGO-Norsyn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would say that to achieve what you describe - when user enter input manually during drag, you want to remember where the last drag location is - can be easily done without having to use Windows API (but I am not saying it is wrong to use it, if it gets job done).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, there is no need to add a temp line/entity to database for the temporary visual effect and then erase it. one can/should use Transient graphics for that purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 12:16:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/13765648#M85610</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2025-08-13T12:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: changing cursor position via code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/13775259#M85643</link>
      <description>&lt;P&gt;Thank you very much for your comment.&lt;BR /&gt;First point, do you mean using Forms mouse methods?&lt;/P&gt;&lt;P&gt;And second, you can't snap to transients, can you? I am adding the line to database, so user can snap to its' end.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 09:14:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-cursor-position-via-code/m-p/13775259#M85643</guid>
      <dc:creator>MGO-Norsyn</dc:creator>
      <dc:date>2025-08-20T09:14:33Z</dc:date>
    </item>
  </channel>
</rss>

