Jump to content

coordinate info on drawing


Recommended Posts

I would like to create a script which will allow me to click on a point, drag, and where I let go of the mouse, it would produce x and y coordinate information (of the click point) in a text field (or 2) ontop of each other i.e

x = 3245

y = 4623

Is this possible or am I asking the impossible !

Link to comment

Quite possible and very easy. Use GETPTL(x1, y1, x2, y2) to retrive coordinates and to define the text location, then TEXTORIGIN(x2, y2) and CREATETEXT([coordinates converted to text with NUM2STR, separated with CHR(13)]). For clarity, convert first to string variables.

Better still, make it a PIO (with a different approach and code) and you can move it, with coordinates automatically updating.

Link to comment
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...