cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Advocate

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.

Industrial Architect and Structural Design Engineer, developer of free addon for sync GDL param and properties

View solution in original post

2 REPLIES 2
Solution
kuvbur
Advocate

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.

Industrial Architect and Structural Design Engineer, developer of free addon for sync GDL param and properties

Thank you sir, it works!