BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

Defaut wall when use toolbox

Lawoks
Contributor

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);
}
}
0 REPLIES 0
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!