We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2018-09-09 08:36 AM - last edited on 2023-07-04 02:09 PM by Doreena Deng
Solved! Go to Solution.
2018-09-09 10:38 AM
double GetAreaOfZone (const API_Guid& zoneGuid) { API_ElementQuantity quantity = {}; API_Quantities quantities = {}; API_QuantitiesMask mask; ACAPI_ELEMENT_QUANTITY_MASK_CLEAR (mask); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, zone, area); quantities.elements = &quantity; ACAPI_Element_GetQuantities (zoneGuid, nullptr, &quantities, &mask); return quantity.zone.area; }
2018-09-09 10:38 AM
double GetAreaOfZone (const API_Guid& zoneGuid) { API_ElementQuantity quantity = {}; API_Quantities quantities = {}; API_QuantitiesMask mask; ACAPI_ELEMENT_QUANTITY_MASK_CLEAR (mask); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, zone, area); quantities.elements = &quantity; ACAPI_Element_GetQuantities (zoneGuid, nullptr, &quantities, &mask); return quantity.zone.area; }
2018-09-09 05:04 PM