home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p024 / 12.img / ADS1.LIB / ADSCODES.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-27  |  4.2 KB  |  95 lines

  1. /* Next available MSG number is   1 */
  2.  
  3. /* ADSCODES.H - Definitions of the AutoCAD function request and result
  4.                 codes used by ADS programs.
  5.  
  6.       (C) Copyright 1988-1992 by Autodesk, Inc.
  7.  
  8.       This program is copyrighted by Autodesk, Inc. and is  licensed
  9.       to you under the following conditions.  You may not distribute
  10.       or  publish the source code of this program in any form.   You
  11.       may  incorporate this code in object form in derivative  works
  12.       provided  such  derivative  works  are  (i.) are  designed and 
  13.       intended  to  work  solely  with  Autodesk, Inc. products, and 
  14.       (ii.)  contain  Autodesk's  copyright  notice  "(C)  Copyright  
  15.       1988-1992 by Autodesk, Inc."
  16.  
  17.       AUTODESK  PROVIDES THIS PROGRAM "AS IS" AND WITH  ALL  FAULTS.
  18.       AUTODESK  SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF  MER-
  19.       CHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK,  INC.
  20.       DOES  NOT  WARRANT THAT THE OPERATION OF THE PROGRAM  WILL  BE
  21.       UNINTERRUPTED OR ERROR FREE.
  22.  
  23. */
  24.  
  25. #ifndef _ADSCODES_H
  26. #define _ADSCODES_H 1
  27.  
  28.  
  29. /*  AutoCAD to ADS program request type codes  */
  30.  
  31. #define RQSAVE  14                    /* ACAD is saving the drawing */
  32. #define RQEND   15                    /* ACAD is ending the drawing editor */
  33. #define RQQUIT  16                    /* ACAD quits */
  34. #define RQCFG   22                    /* AutoCAD is returning from CONFIG */
  35.  
  36. /* The following are LISP to Application ONLY request codes.  They form
  37.     the interface for ADS */
  38. #define RQXLOAD 100                   /* Load external functions */
  39. #define RQXUNLD 101                   /* UN-Load application  */
  40. #define RQSUBR  102                   /* External subroutine request */
  41.  
  42.  
  43. /*  ADS program to AutoCAD result type codes  */
  44.  
  45. #define RSRSLT   1                    /* Result returned */
  46. #define RSERR    3                    /* Error in evaluation -- no result */
  47.  
  48.  
  49.  
  50. /*  Result value type codes  */
  51.  
  52.     /* These are used in the resbuf.  These ARE NOT the same
  53.        as the group codes used in the entity access routines, and sould
  54.        not be confused with those.  The same result buffer IS used for 
  55.        entity records, however, in which case the restype field may take
  56.        on many more values than those listed here. */
  57.  
  58. #define RTNONE    5000                /* No result */
  59. #define RTREAL    5001                /* Real number */
  60. #define RTPOINT   5002                /* 2D point X and Y only */
  61. #define RTSHORT   5003                /* Short integer */
  62. #define RTANG     5004                /* Angle */
  63. #define RTSTR     5005                /* String */
  64. #define RTENAME   5006                /* Entity name */
  65. #define RTPICKS   5007                /* Pick set */
  66. #define RTORINT   5008                /* Orientation */
  67. #define RT3DPOINT 5009                /* 3D point - X, Y, and Z */
  68. #define RTLONG    5010                /* Long integer */
  69. #define RTVOID    5014                /* Blank symbol */
  70. #define RTLB      5016                /* list begin */
  71. #define RTLE      5017                /* list end */
  72. #define RTDOTE    5018                /* dotted pair */
  73. #define RTNIL     5019                /* nil */
  74. #define RTDXF0    5020                /* DXF code 0 for ads_buildlist only */
  75. #define RTT       5021                /* T atom */
  76.  
  77. /* The following RT codes are for the ADS program interface.
  78.    They are used to signal success or failure (error) of the
  79.    ADS library functions.  RTFAIL in particular means that 
  80.    the link has failed (most likely because AutoLISP has
  81.    died or exited), and the application should cleanup and exit.
  82. */
  83.  
  84. #define RTNORM    5100                /* Request succeeded */
  85.  
  86. /* Various error codes returned to ADS application by library */
  87. #define RTERROR  -5001                /* Some other error */
  88. #define RTCAN    -5002                /* User cancelled request -- Ctl-C */
  89. #define RTREJ    -5003                /* AutoCAD rejected request -- invalid */
  90. #define RTFAIL   -5004                /* Link failure -- Lisp probably died */
  91. #define RTKWORD  -5005                /* Keyword returned from getxxx() routine */
  92.  
  93. #endif    /* _ADSCODES_H */
  94.  
  95.