Damo Posted October 15, 2004 Share Posted October 15, 2004 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 ! Quote Link to comment
Petri Posted October 15, 2004 Share Posted October 15, 2004 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. Quote Link to comment
Damo Posted October 21, 2004 Author Share Posted October 21, 2004 Petri, Im not that good with scripts, or PIO (whatever it is) ! would it be out of order asking for the script (depending on how long it is) I can then investigate and find out how it was done. Would be much appriciated ! Quote Link to comment
neal-2002 Posted April 30, 2005 Share Posted April 30, 2005 this is just the tool im looking for!! any luck with this? would be grateful for any advice or help in doing this as i only use the basics in vectorworks to draw!!! Quote Link to comment
Recommended Posts
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.