We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-10-14 07:15 AM - edited 2024-10-14 07:17 AM
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.
Solved! Go to Solution.
2024-10-14 08:13 AM
Look into rubber lines ACAPI_Interface (APIIo_DrawRubberLineID)
There are sample codes on Interface_Functions example
2024-10-14 08:13 AM
Look into rubber lines ACAPI_Interface (APIIo_DrawRubberLineID)
There are sample codes on Interface_Functions example
2024-10-14 08:36 AM
Thank you for answer.
I solve this problem!