2021-01-15
11:20 AM
- last edited on
2021-09-14
01:35 PM
by
Noemi Balogh
err = ACAPI_Attribute_GetNum(API_BuildingMaterialID, &count);
if (err != NoError)
return materials;
for (i = 1; i <= count; i++) {
BNZeroMemory(&attrib, sizeof(API_Attribute));
attrib.header.typeID = API_BuildingMaterialID;
attrib.header.index = i;
err = ACAPI_Attribute_Get(&attrib);
}
My question is what is the problem here? Why are those properties NULL?2021-01-16 06:38 PM
API_Attribute attrib; BNZeroMemory (&attrib, sizeof (API_Attribute)); attrib.header.typeID = API_BuildingMaterialID; attrib.header.index = attributeIndex; GS::UniString manufacturer; attrib.buildingMaterial.manufacturer = &manufacturer; ACAPI_Attribute_Get (&attrib);