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

Get element's ID

Miha Nahtigal
Advocate

Hi everyone.

I am looking for a API function to get element's (object's, slab's,...) ID - the field in the "ID and properties" section of elements palette. Can not find it in the documentation.

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

Accepted Solutions
Solution
kovacsv
Booster

It can be accessed with the ACAPI_Database function using the APIDb_GetElementInfoStringID id: https://archicadapi.graphisoft.com/documentation/apidb_getelementinfostringid

View solution in original post

4 REPLIES 4
Solution
kovacsv
Booster

It can be accessed with the ACAPI_Database function using the APIDb_GetElementInfoStringID id: https://archicadapi.graphisoft.com/documentation/apidb_getelementinfostringid

Thank you for your prompt and accurate answer. 

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

I am trying to put an id while creating a beam.
I think it will be easier to understand if there is a code.
Which code in the example can I understand?

AC27 on window 11

err = ACAPI_Database(APIDb_ChangeElementInfoStringID, &element.header.guid, &na);

 

스크린샷 2023-10-06 131651.png

ACAPI_Database not found in archicad 27 api
There is also no content in ACAPinc.h.
What should I study?

 

And I don't have apidevkit.chm, where should I search for it?

AC27 on window 11