License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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

How to access custom fields added in Project Info via Archicad C++ API?

Le Tan Kien
Booster

Hi everyone,

I'm developing an Archicad Add-On using the C++ API and need to retrieve custom fields that were manually added in the "Project Info" dialog (File > Info > Project Info).community.graphisoft.com

I understand that API_ProjectNoteInfo provides access to standard fields like projectName, client, and company. However, it doesn't seem to include any custom fields added by the user.

Is there a way to programmatically access these custom fields using the Archicad C++ API?

Any guidance or examples would be greatly appreciated.

Thank you!

 
 

image.png

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
kuvbur
Enthusiast

To read custom fields, use the APIAny_GetAutoTextsID function (named ACAPI_AutoText_GetAutoTexts in versions 27/28) with the parameter API_AutotextType type = APIAutoText_Custom. Refer to the API sample code in Goodie_Functions.cpp for implementation examples.

Structural engineer, developer of free addon for sync GDL param and properties

View solution in original post

2 REPLIES 2
Solution
kuvbur
Enthusiast

To read custom fields, use the APIAny_GetAutoTextsID function (named ACAPI_AutoText_GetAutoTexts in versions 27/28) with the parameter API_AutotextType type = APIAutoText_Custom. Refer to the API sample code in Goodie_Functions.cpp for implementation examples.

Structural engineer, developer of free addon for sync GDL param and properties

Thank you sir, it works!