BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

READING ERRORS FROM THE ARCHICAD ?.

Anonymous
Not applicable
Hello,

In a lot of places in the examples, there are statements like err = function(param).

I am trying to get any errors that do occur to show up in the report window. The problem I am having is that ACAPI_WriteReport, CHCopyC, and sprintf all seemt to require strings or const char * values.

I poked around in the documentation for what feel like forever (probably an hour between yesterday and today). How are you guys finding out what error codes the API is generating? Do I have to convert the GSErrCodes to characters?

thanks
yuvsaha
1 REPLY 1
Viktor Kovacs
Graphisoft
Graphisoft
There is no string representation for error codes. The documentation lists possible errors for every function (e.g. https://archicadapi.graphisoft.com/documentation/acapi_element_create), and you can find a detailed list of all error codes here: https://archicadapi.graphisoft.com/documentation/error-codes.
Learn and get certified!