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.

"API_ElemFilterFlags" enforcement issue in Release Mode (APIWind_DocumentFrom3DID)

jjw1988
Newcomer

GS::Array<API_Guid> elemList;
elemList.Clear();

 

API_WindowInfo windowInfo;
BNZeroMemory(&windowInfo, sizeof(API_WindowInfo));
ACAPI_Database(APIDb_GetCurrentWindowID, &windowInfo, NULL);

 

if (windowInfo.typeID == APIWind_DocumentFrom3DID)
{
AcElement::GetElemList(API_SectElemID, elemList, APIFilt_OnVisLayer);

}

---------------------------------------------------------------------------------------------------------------

In debug mode, the number is normally saved according to the filter. However, in release mode, the number of filters is not accurately entered.
In release mode, filter("APIFilt_OnVisLayer") does not work properly. The filter is applied as "APIFilt_None".
Why is the filter not applied in release mode (windowInfo.typeID == APIWind_DocumentFrom3DID)?

 

1 REPLY 1
akomporday
Graphisoft
Graphisoft

Hi,

AcElement::GetElemList(API_SectElemID, elemList, APIFilt_OnVisLayer); is not an API function, it seems like some wrapper to me. Does it simply pass on the parameters to the API function?

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!