Get element's extended data
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2014-06-13
11:26 AM
- last edited on
‎2023-08-01
02:52 PM
by
Doreena Deng
‎2014-06-13
11:26 AM
- You can get the element's default data by ACAPI_Element_GetDefaults and its default extended data by ACAPI_Element_GetDefaultsExt.
- You can change the element's default data by ACAPI_Element_ChangeDefaults and its default extended data by ACAPI_Element_ChangeDefaultsExt
- You can create an element by ACAPI_Element_Create and with extended data by ACAPI_Element_CreateExt
- You can change the element's data by ACAPI_Element_Change and its extended data by ACAPI_Element_ChangeExt
- You can get the element's data by ACAPI_Element_Get
I created one using ACAPI_Element_CreateExt functions. The data I input was perfectly saved in the detail marker. But now I want to get it, I can't seem to find it since there is no corresponding ACAPI_Element_GetExt function for it. I've tried using/getting the parameters using:
owner.libInd = 0; owner.typeID = iElemHead.typeID; owner.index = iElemHead.index; ACAPI_Goodies(APIAny_OpenParametersID, &owner)...but it returns 0x81060068 (APIERR_BADPARS).
EDIT 1:
BTW, am I right that the "Ext" stands for "extended [data]".
~ReignBough~
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2014-06-30 12:34 PM
‎2014-06-30
12:34 PM
The element's extended datas are stored in elementmemos.
So ACAPI_Element_GetMemo function is what are you looking for.
So ACAPI_Element_GetMemo function is what are you looking for.
API_Element element; API_ElementMemo memo; GSErrCode err = NoError; // after you have the element's guid: err = ACAPI_Element_GetMemo (element.header.guid, &memo); // extended data will be in memo structure