License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
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 Alumni
Graphisoft Alumni

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?

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!