We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Accesses the "height of opening" in the dimension's text

Miha Nahtigal
Advocate

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++

 

 


Configuration.pngBefore.pngAfter.png

BIMquants.comBETA - Quantities and Costs Estimation in Archicad - BETA testers needed.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Viktor Kovacs
Graphisoft
Graphisoft

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

 

View solution in original post

2 REPLIES 2
Solution
Viktor Kovacs
Graphisoft
Graphisoft

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

 

Miha Nahtigal
Advocate

Great. Thank you.

BIMquants.comBETA - Quantities and Costs Estimation in Archicad - BETA testers needed.