Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
2018-08-23
09:23 AM
- last edited on
2022-11-30
10:46 AM
by
Daniel Kassai
// not real code, just for example API_Elem_Head** headers = (API_Elem_Head **)BMAllocateHandle(sizeof(API_Elem_Head) * arraySize, ALLOCATE_CLEAR, 0); ACAPI_ELEMENT_MASK_CLEAR(mask); ACAPI_ELEMENT_MASK_SET(mask, API_Elem_Head, layer); BNZeroMemory(&element, sizeof(API_Element)); element.header.typeID = API_WallID; element.header.layer = newLayerIndex; //... fill headers types and guids ACAPI_Element_ChangeParameters(headers, arraySize, &element, nullptr, &mask);It works OK but function ACAPI_Element_ChangeParameters works very very slow!
2018-08-23 10:00 AM
bool wire3D = true; // Highlight elements: ACAPI_Interface (APIIo_HighlightElementsID, &hlElems1, &wire3D); // Remove the highlight: ACAPI_Interface (APIIo_HighlightElementsID); // Highlight other elements: ACAPI_Interface (APIIo_HighlightElementsID, &hlElems2, &wire3D);
2018-08-23 11:24 AM