Got a minute? We appreciate your feedback:

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

Is it possible with an API to connect a new element to an existing label?

ACAPI_ELEMENT_MASK_SET(mask, API_LabelType, parent);

element.label.parent = guid;

err = ACAPI_Element_Change(&element, &mask, &memo, 0, true);

This code is wrong. 

The label is not associated with a new element.

AC25 5010 / AC26 4019 on window 11


I believe that once created and placed, the status of a label can not be changed. This is because associated labels acquire the guid of the element they are attached to. Maybe wrong on this one?


Windows 10 - Visual Studio 2019; ArchiCAD 26

This is the part I don't understand.
If it's because of the Guid, it's because you'll have to re-specify the Guid.
If I need to fetch information via Guid, but there is no command to get it back, then I can understand.
This article was translated from

AC25 5010 / AC26 4019 on window 11

I know what you said is true.
thank you.
Have a nice day
When creating new Labels,
set this to APINULLGuid to create an independent Label; or
set this to the GUID of the owner element (a labelable element) to create an associative Label.

When getting or changing a Label, this member will be filled with the GUID of the owner element,
or APINULLGuid, if the Label is independent.
It is not allowed to make an existing associative Label independent,
or make an existing independent Label associative.

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!