Does anyone have...

Discussion in 'AutoCAD' started by Eli Kay, Dec 14, 2004.

  1. Eli Kay

    Eli Kay Guest

    Does anyone have the list of error codes generated by AutoLISP or where to
    find them in the Help?

    Thnx for your time.
     
    Eli Kay, Dec 14, 2004
    #1
  2. Eli Kay

    Adesu Guest

    Hi Eli,you must post to "autodesk.autocad.customization",over there more
    people expert in autolisp program
     
    Adesu, Dec 14, 2004
    #2
  3. Eli Kay

    R.K. McSwain Guest

    Open "acad_dev.chm", go to the Index tab, type in "Error", look for
    "Error Codes -> Autolisp".
     
    R.K. McSwain, Dec 14, 2004
    #3
  4. I just looked in 2004 and 2005. This is all that is displayed, but nothing
    is listed.

    "This appendix lists the AutoLISP error codes."

    2002 help does show the listing though.
     
    Daniel J. Altamura, R.A., Dec 14, 2004
    #4
  5. Same here (2004) if I try to go through Help in Autocad, but works fine
    if I open the file directly in Windows as R. K. McSwain suggested.

    Martin
     
    Martin Shoemaker, Dec 14, 2004
    #5
  6. Eli Kay

    ecable Guest

    Open the VLIDE (Visual Lisp editor) and use the help there. That is a different help file that deals with lisp.
     
    ecable, Dec 16, 2004
    #6
  7. Eli Kay

    Eli Kay Guest

    I appreciate everyone's input, but that still din't do it.

    Here's clarification:
    When autolistp routine does not understand a function, as in passing an
    integer instead of a list, it issues an error message.
    Here's an example of one of these errors:
    lselsetp 0

    If I'm correct, there's probably 20 or so messages like this that tell the
    user what went wrong. The list of these errors was included back in printed
    R12 AutoLISP manual and it is this list I'm looking for.

    Thanx again.
     
    Eli Kay, Dec 16, 2004
    #7
  8. Eli Kay

    R.K. McSwain Guest

    As mentioned a few times, it's in "acad_dev.chm"

    I'm not sure how this will render in the newsreader, but I'll paste it
    in for you.

    ===========================================================================

    AutoLISP Error Codes This appendix lists the AutoLISP error codes.

    The following table shows the values of error codes generated by
    AutoLISP. The ERRNO system variable is set to one of these values when
    an AutoLISP function call causes an error that AutoCAD detects. AutoLISP
    applications can inspect the current value of ERRNO with (getvar "errno").

    The ERRNO system variable is not always cleared to zero. Unless it is
    inspected immediately after an AutoLISP function has reported an error,
    the error that its value indicates may be misleading. This variable is
    always cleared when starting or opening a drawing.

    Note: The possible values of ERRNO, and their meanings, may change in
    future releases of AutoCAD. Online program error codes
    Value Meaning
    0 No error
    1 Invalid symbol table name
    2 Invalid entity or selection set name
    3 Exceeded maximum number of selection sets
    4 Invalid selection set
    5 Improper use of block definition
    6 Improper use of xref
    7 Object selection: pick failed
    8 End of entity file
    9 End of block definition file
    10 Failed to find last entity
    11 Illegal attempt to delete viewport object
    12 Operation not allowed during PLINE
    13 Invalid handle
    14 Handles not enabled
    15 Invalid arguments in coordinate transform request
    16 Invalid space in coordinate transform request
    17 Invalid use of deleted entity
    18 Invalid table name
    19 Invalid table function argument
    20 Attempt to set a read-only variable
    21 Zero value not allowed
    22 Value out of range
    23 Complex REGEN in progress
    24 Attempt to change entity type
    25 Bad layer name
    26 Bad linetype name
    27 Bad color name
    28 Bad text style name
    29 Bad shape name
    30 Bad field for entity type
    31 Attempt to modify deleted entity
    32 Attempt to modify seqend subentity
    33 Attempt to change handle
    34 Attempt to modify viewport visibility
    35 Entity on locked layer
    36 Bad entity type
    37 Bad polyline entity
    38 Incomplete complex entity in block
    39 Invalid block name field
    40 Duplicate block flag fields
    41 Duplicate block name fields
    42 Bad normal vector
    43 Missing block name
    44 Missing block flags
    45 Invalid anonymous block
    46 Invalid block definition
    47 Mandatory field missing
    48 Unrecognized extended data (XDATA) type
    49 Improper nesting of list in XDATA
    50 Improper location of APPID field
    51 Exceeded maximum XDATA size
    52 Entity selection: null response
    53 Duplicate APPID
    54 Attempt to make or modify viewport entity
    55 Attempt to make or modify an xref, xdef, or xdep
    56 ssget filter: unexpected end of list
    57 ssget filter: missing test operand
    58 ssget filter: invalid opcode (-4) string
    59 ssget filter: improper nesting or empty conditional clause
    60 ssget filter: mismatched begin and end of conditional clause
    61 ssget filter: wrong number of arguments in conditional clause (for
    NOT or XOR)
    62 ssget filter: exceeded maximum nesting limit
    63 ssget filter: invalid group code
    64 ssget filter: invalid string test
    65 ssget filter: invalid vector test
    66 ssget filter: invalid real test
    67 ssget filter: invalid integer test
    68 Digitizer is not a tablet
    69 Tablet is not calibrated
    70 Invalid tablet arguments
    71 ADS error: Unable to allocate new result buffer
    72 ADS error: Null pointer detected
    73 Cannot open executable file
    74 Application is already loaded
    75 Maximum number of applications already loaded
    76 Unable to execute application
    77 Incompatible version number
    78 Unable to unload nested application
    79 Application refused to unload
    80 Application is not currently loaded
    81 Not enough memory to load application
    82 ADS error: Invalid transformation matrix
    83 ADS error: Invalid symbol name
    84 ADS error: Invalid symbol value
    85 AutoLISP/ADS operation prohibited while a dialog box was displayed
     
    R.K. McSwain, Dec 17, 2004
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.