Archicad C++ API
About Archicad add-on development using the C++ API.

Grid coordinates

Anonymous
Not applicable
Is it possible to get x, y, coordinates by clicking on grid ?
Or get coordinates from clicked position - object or grid.
2 REPLIES 2
Ralph Wessel
Mentor
Rinovo wrote:
Is it possible to get x, y, coordinates by clicking on grid ?
Or get coordinates from clicked position - object or grid.
Do you want to prompt the user to click somewhere? Or do you want to discover where the user clicked when changing the current selection?
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Yes i want to get coordinates on prompt.
And use coordinates for drawing object.

I could use line drawing as in example in Interface_Functions (Do_InputALine).
I think i could get coordinates out of API_GetPointType and API_GetLineType.

Thanks Ralph