Hi Experts,
Base of examples, i use a function to change the selection in the ToolBox, for example to wall. Is it possible to select a different wall than the one that displays in the info panel, in the structure field? I mean: to change default/current wall to different one?
He is the function i use to set the ToolBox.
To call walls I use:
Set_My_toolbox(API_WallID), to call beams: Set_My_toolbox(API_WallID);
funcxtion:
void Set_My_toolbox(API_ElemTypeID elemTypeID)
{
API_ToolBoxItem tboxInfo;
GSErrCode err;
BNZeroMemory(&tboxInfo, sizeof(API_ToolBoxItem));
tboxInfo.type = elemTypeID;
err = ACAPI_Environment(APIEnv_SetToolBoxModeID, &tboxInfo, nullptr, nullptr);
if (err == NoError) {
GS::UniString my_name = ElemID_To_Name(tboxInfo.type.typeID);
ACAPI_WriteReport(my_name, true);
}
}