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

reading errors from Archicad

TomWaltz
Participant
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?
Tom Waltz
2 REPLIES 2
Oleg
Expert
You can find WriteReport.... functions in APICommon.h,.c files located in many API examples. So you can copy this files into your project and use it. I dont use it, but I think it will do what you asked.
TomWaltz
Participant
thank you, Oleg, that's exactly what I needed!
Tom Waltz