Got a minute? We appreciate your feedback:

Graphisoft Learn survey
Archicad C++ API
About Archicad add-on development using the C++ API.

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.

1 ACCEPTED SOLUTION
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. 

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?

AC25 5010 / AC26 4019 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?

AC25 5010 / AC26 4019 on window 11

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!