We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
3 weeks ago - last edited 3 weeks ago
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.
3 weeks ago
Look into rubber lines ACAPI_Interface (APIIo_DrawRubberLineID)
There are sample codes on Interface_Functions example
3 weeks ago
Look into rubber lines ACAPI_Interface (APIIo_DrawRubberLineID)
There are sample codes on Interface_Functions example
3 weeks ago
Thank you for answer.
I solve this problem!