We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2010-10-06 01:06 PM - last edited on 2023-08-03 10:55 AM by Doreena Deng
2010-10-06 03:54 PM
atila-diffusion wrote:You're trying to dereference a variable that isn't a pointer, i.e. currentElement->header is a ACAPI_Elem_Head structure (not a pointer to one). Even if it was, you need to provide a pointer to a pointer (a handle) to the data. Try something like this:
i'm trying to use the ACAPI_Element_Delete function which requires an "ACAPI_Elem_Head **" value as first parameter in order to delete the right element (as written in the Database Overview).
In my code, i first set the variable "API_Element *currentElement;" which contains my element's adress :
"currentElement = &element;"
I then try to use the "ACAPI_Element_Delete" function :
"ACAPI_Element_Delete(*currentElement->header, 1);"
API_Elem_Head* head = &element.header; GSErrCode err = ACAPI_Element_Delete(&head, 1);