Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

How To Get Wall Area (square meter=m2) from [Morph]

Anonymous
Not applicable
Please teach me that
How To Get Wall Area (square meter=m2) from [Morph].

Parameter or Property or Calcurate Method ?
Element or Element_Memo ?
1 REPLY 1

Anonymous
Not applicable
The contributor person himself.
Is it a correct answer with this?
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;
}

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!