ol_errno.h 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. // AutoCAD Release 12 On-Line application Error codes (set in the "_ERRNO"
  13. // system variable).
  14. //
  15. // NOTE: The "_ERRNO" values are subject to change with major
  16. // releases of AutoCAD. To ensure proper error diagnostics, be
  17. // sure to include the proper version of this file with your program.
  18. #ifndef _OL_ERRNO_H
  19. #define _OL_ERRNO_H
  20. #define OL_GOOD 0 /* Everything is just fine */
  21. #define OL_ESNVALID 1 /* Invalid symbol table name */
  22. #define OL_ENAMEVALID 2 /* Invalid name (entity or ss) value */
  23. #define OL_ESSMAX 3 /* Exceeded max number of sel. sets */
  24. #define OL_ESSVALID 4 /* Invalid selection set */
  25. #define OL_EBDEVALID 5 /* Improper use of block def. entity */
  26. #define OL_EXDEVALID 6 /* Improper use of xref entity */
  27. #define OL_ENTSELPICK 7 /* Entity selection (failed pick) */
  28. #define OL_EEOEF 8 /* End of entity file */
  29. #define OL_EEOBD 9 /* End of Block def. file */
  30. #define OL_EEMPDB 10 /* Failure of entlast */
  31. #define OL_EDELVPORT 11 /* Illegal entdel of VPORT */
  32. #define OL_EACQPLINE 12 /* Operation not allowed during PLINE */
  33. #define OL_EHANDLE 13 /* Invalid handle */
  34. #define OL_ENOHAND 14 /* Handles not enabled */
  35. #define OL_ETRANS 15 /* Invalid trans request */
  36. #define OL_EXSPACE 16 /* Invalid space trans request */
  37. #define OL_EDELENT 17 /* Invalid use of deleted entity */
  38. #define OL_ETBLNAME 18 /* Invalid table name */
  39. #define OL_ETBLARG 19 /* Invalid table function argument */
  40. #define OL_ERDONLY 20 /* Attempt to set read only variable */
  41. #define OL_ENONZERO 21 /* Zero value invalid */
  42. #define OL_ERANGE 22 /* Value out of range */
  43. #define OL_ERGBUSY 23 /* Complex regen in progress */
  44. #define OL_EMMTYPE 24 /* Attempt to change entity type */
  45. #define OL_EMMLAY 25 /* Bad layer name */
  46. #define OL_EMMLT 26 /* Bad linetype name */
  47. #define OL_EMMCOLOR 27 /* Bad color name */
  48. #define OL_EMMSTYLE 28 /* Bad text style name */
  49. #define OL_EMMSHAPE 29 /* Bad shape name */
  50. #define OL_EMMFTYPE 30 /* Bad field for entity type */
  51. #define OL_EMODDEL 31 /* Attempted entmod of deleted entity */
  52. #define OL_EMODSEQ 32 /* Attempted entmod of SEQEND */
  53. #define OL_EMODHAND 33 /* Attempt to change handle */
  54. #define OL_EMODVPVIS 34 /* Illegal modification of vport vis. */
  55. #define OL_EMMLL 35 /* Entity on locked layer */
  56. #define OL_EMKTYPE 36 /* Bad entity type */
  57. #define OL_EMKPLINE 37 /* Bad PLINE entity */
  58. #define OL_EMKCMPLX 38 /* Incomplete complex ent in block */
  59. #define OL_EMKBNAME 39 /* Invalid block name field */
  60. #define OL_EMKBFLAG 40 /* Duplicate block flag fields */
  61. #define OL_EMKDBNAME 41 /* Duplicate block name fields */
  62. #define OL_EMKNORM 42 /* Bad normal vector */
  63. #define OL_EMKNOBNM 43 /* Missing block name */
  64. #define OL_EMKNOBFLG 44 /* Missing block flags */
  65. #define OL_EMKANON 45 /* Invalid anonymous block */
  66. #define OL_EMKBLOCK 46 /* Invalid block definition entity */
  67. #define OL_EMKMANDF 47 /* Manditory field missing */
  68. #define OL_EMMXDTYPE 48 /* Unrecognized extended data type */
  69. #define OL_EMMXDNEST 49 /* Improper nesting of list in xdata */
  70. #define OL_EMMXDAPPID 50 /* Improper location of APPID field */
  71. #define OL_EMMXDSIZE 51 /* Exceeded maximum xdata size */
  72. #define OL_ENTSELNULL 52 /* Entity selection (null response) */
  73. #define OL_EMXDAPPID 53 /* Entmod/entmake with duplicate appid */
  74. #define OL_EMMVPORT 54 /* Entmod/entmake of VPORT failed */
  75. #define OL_INVEXT 55 /* Entmake of XDEF/XREF/XDEP */
  76. #define OL_EFLTR1 56 /* Bad SSGET filter: premature end */
  77. #define OL_EFLTR2 57 /* " missing test operand */
  78. #define OL_EFLTR3 58 /* " invalid opcode string */
  79. #define OL_EFLTR4 59 /* " void clause/bad nesting */
  80. #define OL_EFLTR5 60 /* " beg/end clause mismatch */
  81. #define OL_EFLTR6 61 /* " wrong # of XOR/NOT args */
  82. #define OL_EFLTR7 62 /* " max nesting exceeded */
  83. #define OL_EFLTR8 63 /* " invalid group code */
  84. #define OL_EFLTR9 64 /* " invalid string test */
  85. #define OL_EFLTR10 65 /* " invalid vector test */
  86. #define OL_EFLTR11 66 /* " invliad real test */
  87. #define OL_EFLTR12 67 /* " invalid integer test */
  88. #define OL_TABNOT 68 /* Digitizer isn't a tablet */
  89. #define OL_TABNOCAL 69 /* Tablet isn't calibrated. */
  90. #define OL_TABERR 70 /* Invalid (tablet) arguments */
  91. #define OL_ENEWRB 71 /* Unable to allocate resbuf */
  92. #define OL_ENULLPTR 72 /* NULL Pointer detected */
  93. #define OL_EOPEN 73 /* Can't open file */
  94. #define OL_ELOADED 74 /* Application is already loaded */
  95. #define OL_EMAXAPP 75 /* Number of apps exceeds limit */
  96. #define OL_EEXEC 76 /* Unable to execute the application */
  97. #define OL_EVERSION 77 /* Incompatible version number */
  98. #define OL_EDENIED 78 /* Unable to unload nested ADS app */
  99. #define OL_EREFUSE 79 /* The application refused to XUNLOAD */
  100. #define OL_ENOTLOADED 80 /* The application isn't loaded */
  101. #define OL_ENOMEM 81 /* Out of memory */
  102. #define OL_EXFMVALID 82 /* Invalid transformation matrix */
  103. #define OL_ESYMNAM 83 /* Invalid symbol name */
  104. #define OL_ESYMVAL 84 /* Invalid symbol value */
  105. #define OL_NONDIALOG 85 /* Not allowed while dialogue up */
  106. /* Error codes 86-91 reserved. */
  107. #define OL_ECMDINP 92 /* Illegal while command in progress */
  108. #define OL_EBADTYPE 93 /* Bad value type */
  109. #define OL_EBADVPID 94 /* Invalid viewport id */
  110. #define OL_EBADVIEW 95 /* Bad view definition */
  111. #define OL_EGCODE 96 /* Unexpected group code */
  112. #define OL_EGDUP 97 /* Duplicate group code specified */
  113. #define OL_EBADSSMOD 98 /* Bad ssget mode string */
  114. #define OL_EARGMATCH 99 /* Arguments are not in agreement */
  115. #define OL_SVRECURSE 100 /* Do not call setvar recursively */
  116. #define OL_MODOPEN 101 /* Attempt to modify an open entity */
  117. #define OL_NOTENTITY 102 /* ENTNEXT on a non-entity */
  118. #define OL_BADPLMOD 103 /* Invalid modification of a pline */
  119. #define OL_BADCTLSTR 104 /* Badly nested control string */
  120. #define OL_EXDICT_PR 105 /* Failure to modify extension dict
  121. or Persistent reactor on r12 entity */
  122. /* If you add a new error code, be sure to add it to the set of errors
  123. described by ADS_PERR.C. In addition, please update the following:
  124. */
  125. #define MAX_OL_ERRNO 105 /* Could be used for range check */
  126. #endif