We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-10-17 03:08 PM - last edited on 2024-09-16 02:28 PM by Doreena Deng
Hello,
I'm looking for a way to access the height of opening in text of dimension info and add there some text (in addition to the text that already there).
Adding 3 pictures to show what I mean
Adding Configuration image, and before and after images
Thanks
Windows 11, Visual Studio 2019, ArchiCAD 26, C++
Solved! Go to Solution.
2023-10-17 08:10 PM
On sections there is a special element type called API_SectElemType. This is the section representation of an elem. You can get the original elem guid by accessing the parameters of the section element. Something like this:
API_Element element = {};
element.header.guid = sectionElementGuid;
ACAPI_Element_Get (&element);
APIGuid originalElemGuid = element.sectElem.parentGuid;
// now the originalElemGuid contains the real element guid
2023-10-17 08:10 PM
On sections there is a special element type called API_SectElemType. This is the section representation of an elem. You can get the original elem guid by accessing the parameters of the section element. Something like this:
API_Element element = {};
element.header.guid = sectionElementGuid;
ACAPI_Element_Get (&element);
APIGuid originalElemGuid = element.sectElem.parentGuid;
// now the originalElemGuid contains the real element guid
2023-10-17 08:26 PM
Great. Thank you.