The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (Archicad API, BIMx API, BIMcloud API) for independent software developers

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, Gordana Radonic, nbalogh, gkmethy, mnguyen, Viktor Kovacs, Mihály Palenik, Tibor Lorántfy, rmasaki, MOREH Tamas, Akos Somorjai, Ed Brown

#328484
The contributor person himself.
Is it a correct answer with this?
Code: Select all
API_ElementQuantity	quantity;
API_QuantitiesMask	mask;
API_Quantities		quantities;
API_QuantityPar		par;
char				buffer[256];
quantities.elements = &quantity;

//MORPH面積
BNZeroMemory(&quantity, sizeof(API_ElementQuantity));
ACAPI_ELEMENT_QUANTITY_MASK_SETFULL(mask);
GSErrCode err = ACAPI_Element_GetQuantities(elem.header.guid, nullptr, &quantities, &mask);
if (err == NoError) {
    //Wall Area ? (Square Meter)
    double d = quantity.morph.surface;
}