Home
Reply
Visitor
billgates
Posts: 2

ACIS Error Messages

Is the a dictionary of ACIS error messages and plain English explaination of them available?
Spatial Moderator
Stacey
Posts: 76

Re: ACIS Error Messages

Hello Billgates, :smileyvery-happy:
 
There are two types of errors you may be referring to:  API errors and model check errors.
 
There is not a consolidated dictionary of API errors.  The error numbers are mapped in the *.err files in the include directory.  In the event of an API error, the error number can be decoded into an English phrase using the find_err_mess function.  One should always check the outcome result of an API function and in the event that it is not successful, extract the error number from the outcome using the error_number() method.  For example:
 
Code:
//Given an outcome object named "result"      

if (!result.ok()) { 
 int error_number = result.error_number();    
       printf("Error %i - %s\n",error_number,find_err_mess(error_number));             
        }

There is a glossary of sorts for entity check errors.  These are the errors that are returned in an insanity_list when calling the function api_check_entity() to determine the quality and integrity of an entity.  This glossary maps the check error codes, the associated strings, and an explanation of the problem and is located in the ACIS Online Help under Intersectors->ACIS Checker.

Best Regards and Happy Thanksgiving!

Stacey

Spatial Employee
RTadlock
Posts: 40

Re: ACIS Error Messages

We now have a list of ACIS error messages located in our wiki documentation.  These are the same as you will find in the .err files that Stacey mentioned above: http://doc.spatial.com/index.php/Error_Messages

Regular Contributor
merrifie
Posts: 31

Re: ACIS Error Messages

I've found that the error number is almost useless in a search for information about an error and might change from release to release. I use the following

 

find_err_ident(result.get_error_info()->error_number());

to obtain the identifier string (e.g. FACET_AREA_IS_BAD) for an error. You can use this symbol in your code and when searching for more information.

 

Mike