home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p024 / 15.img / AME2.LIB / APCONST.LSP < prev    next >
Encoding:
Lisp/Scheme  |  1992-06-17  |  2.9 KB  |  114 lines

  1. ; Copyright (C) 1992 by Autodesk, Inc.
  2.      
  3. ; Permission to use, copy, modify, and distribute this software
  4. ; for any purpose and without fee is hereby granted, provided
  5. ; that the above copyright notice appears in all copies and that
  6. ; both that copyright notice and this permission notice appear in
  7. ; all supporting documentation.
  8.  
  9. ; THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED
  10. ; WARRANTY.  ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR
  11. ; PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
  12.  
  13. ; AutoLISP API constants
  14. ; ----------------------
  15.  
  16.  
  17. ; Boolean values (you cannot use standard AutoLISP's NIL and T)
  18.  
  19. (setq FALSE 0)
  20. (setq TRUE  1)
  21.  
  22. ; Object may be either a solid or a region (ap_Objtype)
  23.  
  24. (setq AP_REGION 0)
  25. (setq AP_SOLID  1)
  26.  
  27. ; Type of primitive or composite object (ap_Primtype)
  28.  
  29. (setq AP_BX    0)       ; Box
  30. (setq AP_CON   1)       ; Cone
  31. (setq AP_CYL   2)       ; Cylinder
  32. (setq AP_SPH   3)       ; Sphere
  33. (setq AP_TOR   4)       ; Torus
  34. (setq AP_FIL   5)       ; Fillet
  35. (setq AP_CHA   6)       ; Chamfer
  36. (setq AP_BOO   7)       ; Boolean operation
  37. (setq AP_EXT   8)       ; Extrusion
  38. (setq AP_REV   9)       ; Revolution
  39. (setq AP_WED  10)       ; Wedge
  40. (setq AP_CIR  11)       ; Circle
  41. (setq AP_POLY 12)       ; Polyline
  42.  
  43. ; Boolean operators (ap_Booltype)
  44.  
  45. (setq AP_SUB 0)         ; Subtraction
  46. (setq AP_INT 1)         ; Intersection
  47. (setq AP_UNI 2)         ; Union
  48.  
  49. ; Type of polyline vertex (ap_Pointtype)
  50.  
  51. (setq AP_PT_LINE   0)   ; End of line
  52. (setq AP_PT_ARCEND 1)   ; End of arc
  53.  
  54. ; Fillet type (ap_Filcha)
  55.  
  56. (setq AP_STRAIGHT 0)    ; Straight fillet/chamfer between two planar faces
  57. (setq AP_CIRCULAR 1)    ; Circular fillet/chamfer between cyl, con, pln
  58.  
  59. ; Object representation (ap_Posttype)
  60.  
  61. (setq AP_POSTMESH 0)    ; Mesh representation
  62. (setq AP_POSTWIRE 1)    ; Wire representation
  63. (setq AP_UNPOST   2)    ; Makes the object invisible
  64.  
  65. ; Ray direction for mass properties calculation (ap_Rayproj)
  66.  
  67. (setq AP_X_DIR 0)
  68. (setq AP_Y_DIR 1)
  69. (setq AP_Z_DIR 2)
  70.  
  71. ; Surface types (ap_Surftype)
  72.  
  73. (setq AP_PLANAR      0) 
  74. (setq AP_CYLINDRICAL 1) 
  75. (setq AP_CONICAL     2) 
  76. (setq AP_SPHERICAL   3) 
  77. (setq AP_TOROIDAL    4)
  78.  
  79. ; Curve types (ap_Curvetype)
  80.  
  81. (setq AP_LINE      0)   
  82. (setq AP_ELLIPSE   1)   
  83. (setq AP_HYPERBOLA 2)   
  84. (setq AP_PARABOLA  3) 
  85. (setq AP_CYLCYL    4)   ; Cylinder-cylinder intersection
  86. (setq AP_CONCON    5)   ; Cone-cone intersection
  87.  
  88. ; Point or edge segment classification values (ap_Class)
  89.  
  90. (setq AP_FAILED    0)   ; Classification failed
  91. (setq AP_OFFOBJECT 1)   ; Point or line segment is outside the object
  92. (setq AP_ONOBJECT  2)   ; Point or line segment is on the object boundary
  93. (setq AP_INOBJECT  3)   ; Point or line segment is inside the object
  94.  
  95. ; Error code obtained from (ap_last_errcode) when CTRL-C was hit
  96.  
  97. (setq AP_CANCEL_CODE 45)
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.