reading errors from Archicad

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-07
03:02 PM
- last edited on
‎2023-08-07
11:34 AM
by
Doreena Deng
‎2005-10-07
03:02 PM
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?
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
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-08 08:45 PM
‎2005-10-08
08:45 PM
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-08 09:02 PM
‎2005-10-08
09:02 PM
thank you, Oleg, that's exactly what I needed!
Tom Waltz