2006-07-07 04:00 AM - last edited on 2023-08-07 10:50 AM by Doreena Deng
element.header.typeID = API_ZoneID; element.header.unId = entityid; err = ACAPI_Element_Get (&element); if (err != NoError) return entityid; ACAPI_ELEMENT_MASK_CLEAR (mask); ACAPI_ELEMENT_MASK_SET (mask, API_ZoneType, pos); ACAPI_ELEMENT_MASK_SET (mask, API_ZoneType, refPos); element.zone.pos.x = centerpoint_x; element.zone.pos.y = centerpoint_y; element.zone.refPos.x = centerpoint_x; element.zone.refPos.y = centerpoint_y; err = ACAPI_Element_Change (&element, &mask, NULL, 0, true);
2006-07-20 01:42 PM
2010-08-19 02:48 PM
API_Element element, mask; BNZeroMemory (&element, sizeof (API_Element)); element.header.guid = guid; err = ACAPI_Element_Get (&element); if (err != NoError){ ErrorBeep ("ACAPI_Element_Get", err); return; } if (err == NoError) { ACAPI_ELEMENT_MASK_CLEAR (mask); ACAPI_ELEMENT_MASK_SET (mask, API_DimensionType, defNote.notePen); element.dimension.defNote.notePen=3; err = ACAPI_Element_Change (&element, &mask, NULL, 0, true);Thanks
2010-08-23 08:41 PM
santi wrote:
Im trying simply to change a colour of a dimension pen.element.dimension.defNote.notePen=3;