We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2005-07-01 10:26 PM - last edited on 2023-08-07 11:59 AM by Doreena Deng
void KA_SetSection() { API_Element element, mask; GSErrCode err; BNZeroMemory (&element, sizeof (API_Element)); element.header.typeID = API_CutPlaneID; err = ACAPI_Element_GetDefaults (&element, 0); if (err == NoError) { ACAPI_ELEMENT_MASK_CLEAR (mask); ACAPI_ELEMENT_MASK_SET (mask, API_CutPlaneType, markerSize); ACAPI_ELEMENT_MASK_SET (mask, API_CutPlaneType, textSize); ACAPI_ELEMENT_MASK_SET (mask, API_CutPlaneType, useElemPens); ACAPI_ELEMENT_MASK_SET (mask, API_CutPlaneType, cutPlShow); element.cutPlane.markerSize = 10.578278; // 30 points, in mm element.cutPlane.textSize = 2.644569; // 7.50 points, in mm element.cutPlane.useElemPens = true; element.cutPlane.cutPlShow = APICutPl_ShowPartRange; ACAPI_Element_ChangeDefaults (&element, NULL, &mask); char elemStr[32]; char msgStr[256]; CHCopyC ("No Error", elemStr); sprintf (msgStr, "%s Encountered", elemStr); ACAPI_WriteReport (msgStr, false); } else { char elemStr[32]; char msgStr[256]; CHCopyC ("Error", elemStr); sprintf (msgStr, "%s Encountered", elemStr); ACAPI_WriteReport (msgStr, false); } return; }Any suggestions would be greatly appreciated.
2005-07-02 08:29 AM
2005-07-02 01:58 PM
2005-07-06 04:40 PM