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

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

Mouse moving line

YONGWOO KIM
Participant

I want to draw moving line after click one point like measurement tool (shortcut 'm').

 

I can get click point using 'APIIo_GetPointID'.

 

But, I want to show preview line when they drawing.

 

API_GetPointType pointInfo1, pointInfo2;
BNZeroMemory(&pointInfo1, sizeof(API_GetPointType));
BNZeroMemory(&pointInfo2, sizeof(API_GetPointType));
GSErrCode err = ACAPI_Interface(APIIo_GetPointID, &pointInfo1, nullptr);
err = ACAPI_Interface(APIIo_GetPointID, &pointInfo2, nullptr);

 

This is code to get two point.

 

How can I show preview line after click one point.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Erenford
Booster

Look into rubber lines ACAPI_Interface (APIIo_DrawRubberLineID)

There are sample codes on Interface_Functions example

View solution in original post

2 REPLIES 2
Solution
Erenford
Booster

Look into rubber lines ACAPI_Interface (APIIo_DrawRubberLineID)

There are sample codes on Interface_Functions example

Thank you for answer.

 

I solve this problem!