Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

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 :

Tom Waltz kindly answered this question some time ago.

However, I don't understand the answer. And I cannot find any reference in ArchiCad Help to a "2-point object placement method".
(I assume this means I can ask ArchiCad to accept x1y1 and then x2y2 as input, before activating the macro).
Can someone tell me how this is done?

Nevertheless, the answer goes begging. Is there any way to write a GDL so I can obtain x1y1 and x2y2 from within the subroutine? I may wish to do something more complicated than merely place to those points.

If this is complicated please eMail me privately. I'll write up the answer with an example and post it later.

Regards : Douglas Wagner
hdmw@mac.com
1 REPLY 1
TomWaltz
Participant
The two-point method is on the Info Box for the Object Tool.

Using that, all you need are to use the A and B variables of the object.

Beyond that.... we'd need a bit more detail of what you had in mind. I would say it's probably possible as long as all the points in question are contained inside that one object.
Tom Waltz