AModeler Error Codes (AModeler::ErrorCode) - List of 'Internal' Codes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The AModeler suite is the most flexible modeller available without the complication of BREP (AcDb3dSolid is, unfortunately, somewhat slower and the modeller isn't exactly the fastest code in the world), and you can access the basic error codes by looking at the header file that contains AModeler::ErrorCode.
The problem is, often the codes passed to a try / catch's catch handler are 1000+ - but the header file stops at 1000 specifying it as 'eInternalError'. For example, one of the things I discovered about the modeller is that if you perform a boolean subtraction that would leave tiny slivers that it can't represent for some reason, rather than simply flag the resulting body as invalid or emptying it, the modeller throws an exception. One such code is 1073.
For that particular problem, knowing that it is a sliver issue I can go back, inflate the body being subtracted slightly, and that then eliminates the sliver, working around the problem.
The trouble is, I'm routinely getting other 'internal' errors, such as 1013 & 1016. If I knew roughly what they meant, I might be able to work out what to do to try again and eliminate them, as with the slivers - but I'm clueless right now.
Anyone know where those codes might be documented?