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

reading errors from Archicad

TomWaltz
Newcomer
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
Advocate
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
Newcomer
thank you, Oleg, that's exactly what I needed!
Tom Waltz

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!