home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p024 / 12.img / ADS2.LIB / SAGET.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-04  |  3.9 KB  |  103 lines

  1. /*****************************************************************************
  2.       SAGET.H
  3.       (C) Copyright 1988-1992 by Autodesk, Inc.
  4.  
  5.       This program is copyrighted by Autodesk, Inc. and is  licensed
  6.       to you under the following conditions.  You may not distribute
  7.       or  publish the source code of this program in any form.   You
  8.       may  incorporate this code in object form in derivative  works
  9.       provided  such  derivative  works  are  (i.) are  designed and
  10.       intended  to  work  solely  with  Autodesk, Inc. products, and
  11.       (ii.)  contain  Autodesk's  copyright  notice  "(C)  Copyright
  12.       1988-1992 by Autodesk, Inc."
  13.  
  14.       AUTODESK  PROVIDES THIS PROGRAM "AS IS" AND WITH  ALL  FAULTS.
  15.       AUTODESK  SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF  MER-
  16.       CHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK,  INC.
  17.       DOES  NOT  WARRANT THAT THE OPERATION OF THE PROGRAM  WILL  BE
  18.       UNINTERRUPTED OR ERROR FREE.
  19.  
  20.   Description: Library of extended ads_getxxx() functions. These functions
  21.                behave exactly the same as their original ADS counterparts
  22.            but provide:
  23.  
  24.            - AutoLISP input redirection
  25.                - supporting 'CAL (Geometry Calculator) command
  26.            - options 'CP and Baseplane
  27.  
  28.            The library also contains some new functions for entering
  29.            an axis and a plane etc.
  30.  
  31.  
  32. *****************************************************************************/
  33.  
  34. #ifndef _SAGET_H
  35. #define _SAGET_H
  36.  
  37.  
  38. /****************************************************************************/
  39. /*  EXPORTED VARIABLES                                                      */
  40. /****************************************************************************/
  41.  
  42. extern int           lisp_input;  /* Input from the AutoLISP list of resbufs*/
  43. extern int           lisp_error;  /* Error occured during AutoLISP input    */
  44. extern struct resbuf *current_rb; /* Next rb to read from AutoLISP          */
  45.  
  46. extern ads_name      implied_selset;        /* The implied selset name   */
  47. extern int           implied_selset_exists; /* The implied selset exists */
  48.  
  49. extern int           sa_get_returned_RTCAN; 
  50.  
  51. extern ads_name      ssget_ss[20];  
  52. extern int           no_of_ssget_ss;
  53.  
  54.  
  55. /****************************************************************************/
  56. /*  EXPORTED FUNCTIONS                                                      */
  57. /****************************************************************************/
  58.  
  59. /* Enhanced ads_xxxx() functions */
  60.  
  61. int sa_initget    _((int val, char *kwl));
  62. int sa_getinput   _((char *str));
  63.   
  64. int sa_getpoint   _((ads_point pt, char *prompt,
  65.              ads_point result));
  66. int sa_getcorner  _((ads_point pt, char *prompt,
  67.              ads_point result));
  68. int sa_getangle   _((ads_point pt, char *prompt,
  69.              ads_real *result));
  70. int sa_getdist    _((ads_point pt, char *prompt,
  71.              ads_real *result));
  72. int sa_getorient  _((ads_point pt, char *prompt,
  73.              ads_real *result));
  74. int sa_getreal    _((char *prompt, ads_real *result));
  75. int sa_getint     _((char *prompt, int *result));
  76.  
  77. int sa_getstring  _((int cronly, char *prompt, char *result));
  78. int sa_getkword   _((char *prompt, char *result));
  79.  
  80. int sa_entsel     _((char *str, ads_name entres, ads_point ptres));
  81. int sa_ssget      _((char *str, 
  82.              void *pt1, ads_point pt2, 
  83.              struct resbuf *filter, ads_name ss));
  84.  
  85.  
  86. /* Some more functions not available in ADS */
  87.  
  88. int sa_getaxis     _((char *prompt, ads_point p1, ads_point p2));
  89. int sa_getplane    _((char *prompt, char *plane_option, 
  90.               ads_point p1, ads_point p2, ads_point p3));
  91.  
  92. int sa_init_input  _((int input_source));
  93.  
  94. int sa_init_cplast _((void));
  95. int sa_set_cp      _((char *prompt));
  96. int sa_return_cp   _((void));
  97. int sa_cp2ucs      _((ads_point p));
  98. void sa_reset_last_axis_and_plane _((void));
  99.  
  100.  
  101. #endif /*_SAGET_H*/
  102.  
  103.