Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
2018-10-23
03:22 PM
- last edited on
2022-10-05
01:35 PM
by
Daniel Kassai
Solved! Go to Solution.
2018-10-23 08:19 PM
API_ElementQuantity quantity; API_QuantitiesMask mask; API_Quantities quantities; BNZeroMemory (&quantity, sizeof (API_ElementQuantity)); quantities.elements = &quantity; ACAPI_ELEMENT_QUANTITY_MASK_CLEAR (mask); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, width1); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, width2); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, nWidth1); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, nWidth2); GSErrCode err = ACAPI_Element_GetQuantities (doorGuid, nullptr, &quantities, &mask); if (err == NoError) { ACAPI_WriteReport ("Door quantities:\n Reveal Side Width = %.6lf\n Opposite Side Width = %.6lf\n Reveal Side Nominal Width = %.6lf\n Opposite Side Nominal Width = %.6lf\n", true, quantity.door.width1, quantity.door.width2, quantity.door.nWidth1, quantity.door.nWidth2); }Regards,
2018-10-23 08:19 PM
API_ElementQuantity quantity; API_QuantitiesMask mask; API_Quantities quantities; BNZeroMemory (&quantity, sizeof (API_ElementQuantity)); quantities.elements = &quantity; ACAPI_ELEMENT_QUANTITY_MASK_CLEAR (mask); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, width1); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, width2); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, nWidth1); ACAPI_ELEMENT_QUANTITY_MASK_SET (mask, door, nWidth2); GSErrCode err = ACAPI_Element_GetQuantities (doorGuid, nullptr, &quantities, &mask); if (err == NoError) { ACAPI_WriteReport ("Door quantities:\n Reveal Side Width = %.6lf\n Opposite Side Width = %.6lf\n Reveal Side Nominal Width = %.6lf\n Opposite Side Nominal Width = %.6lf\n", true, quantity.door.width1, quantity.door.width2, quantity.door.nWidth1, quantity.door.nWidth2); }Regards,
2018-10-24 09:58 AM