We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

GDL : Get xy coordinate of mouse click as GDL input

Hubert Wagner
Participant
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