cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Hubert Wagner
Participant

GDL : Get xy coordinate of mouse click as GDL input

Hello :
How do I record the xy coordinates of a mouse click in GDL?

I want to define two point on screen and then have my sub-routine size an object and place it between these two points. e.g. the start and end points of a joist.

Start:
Select the type of GDL object
Get x1Y1 (first mouse click)
Get x2y2 (second mouse click)
(do calculation and place object)

Thanks : DW
1 Reply 1
TomWaltz
Participant
You don't need GDL for that. You can just use the 2-point object placement method.

If your overall object size uses the A and B variables, it should size perfectly to fit between the two points.
Tom Waltz

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!