2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2021-02-09
08:33 PM
- last edited on
2021-09-14
09:58 AM
by
Noemi Balogh
2021-02-22 08:40 PM
void MyFunction(const uchar_t* name) { API_LibPart part; BNZeroMemory(&part, sizeof(API_LibPart)); lstrcpy(part.file_UName, name); GSErrCode err = ACAPI_LibPart_Search(&part, false); if (err == NoError) { API_ObjectSettingsPars api_objSetPars; BNZeroMemory(&api_objSetPars, sizeof(API_ObjectSettingsPars)); api_objSetPars.elemDef.header.typeID = API_ObjectID; CHCopyC(part.ownUnID, api_objSetPars.subtypeID); err = ACAPI_Interface(APIIo_ObjectSettingsID, &api_objSetPars); if (err == NoError) { // do sth with the element } } }The window pops up but there's no filtering at all. It just shows everything that's in the whole library (chairs, tables and other decorative stuff).