Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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 Alumni
Graphisoft Alumni
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.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!