2022-03-15 07:24 AM
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)?
2022-03-17 04:13 PM
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?