Jump to content
Sign in to follow this  
Damo

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 !

Share this post


Link to post

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.

Share this post


Link to post

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 !

Share this post


Link to post

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!!!

Share this post


Link to post

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.

Guest
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.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...