home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / GR / GR506.ZIP / ACAD2.EXE / SAVE.DOC < prev    next >
Text File  |  1988-08-10  |  4KB  |  91 lines

  1. SAVE.DOC
  2. Copyright 1988 Alacrity
  3.  
  4. ---< NOTICE >---
  5.  
  6. SAVE.LSP and SAVE.DOC are intended to be public domain.  Please feel free
  7. to distribute freely.  Note that no price may be charged for the
  8. distribution of these files.  Also, please use SAVE.ARC for uploading to
  9. BBSes and such.  Comments and suggestions are welcomed.
  10.  
  11. ---< Introduction >---
  12.  
  13. SAVE.LSP is a lisp routine that redefines the SAVE command to allow
  14. automatic drawing save.  Also included is a feature that remembers the last
  15. filename used for SAVE.
  16.  
  17. SAVE.LSP should be useable with any existing menu system.  The requirements
  18. for using SAVE.LSP with your current menu are (a) sufficient node space and
  19. (b) none of the commands redefined in SAVE.LSP are redefined by other
  20. routines.
  21.  
  22. This is certainly not the first automatic save routine.  Nor will it be the
  23. last (most likely).  But it does introduce the idea of redefining commands
  24. versus having to modify menu systems.  This allows persons with a closed
  25. menu system to have automatic save.  Besides, it's easier to implement.
  26.  
  27. ---< Real Stuff >---
  28.  
  29. SAVE.LSP redefines the SAVE command to allow the default file name to be
  30. changed.  The automatic save routine will use the last filename used by the
  31. SAVE command (versus the name in the DwgName system variable).  This allows
  32. continual backup of the current drawing to a separate file.
  33.  
  34. Redefining the SAVE command is only a part of what SAVE.LSP does.  SAVE.LSP
  35. also redefines commonly used commands.  An example is the LINE command.  It
  36. is modified to run the automatic save routine before starting LINE.  The
  37. list of commands that are modified is: LINE, ARC, CIRCLE, PLINE, PEDIT,
  38. TEXT, DTEXT, LAYER, BLOCK, ERASE, COPY and MOVE.  This is a fairly sound
  39. representation of the most often used commands.  Feel free to remove or add
  40. command definitions as needed.  Follow the format shown in SAVE.LSP.  The
  41. transparent commands (i.e. ZOOM, PAN, VIEW and SETVAR) are not redefined to
  42. prevent any conflicts (redefining a command with transparent features
  43. compromises the transparent feature).  Redefining commands as done in
  44. SAVE.LSP will not effect the operation of menu macros.
  45.  
  46. The automatic save feature is a simple little routine that checks to see
  47. how long it has been since the drawing has been saved.  If it has been
  48. longer than the value in the variable 'lsave' (set to 30), than it saves
  49. the drawing.  If not, it does nothing and control goes back to the
  50. redefined command (i.e. LINE).  To change the amount of time between saves,
  51. set the variable 'lsave' to number of minutes desired.
  52.  
  53. The Expert system variable is set to "2" to eliminate "File already exists.
  54. Save anyway Yes/<No>?" prompts, which can mess up menu marcos.  Set the
  55. CmdEcho system variable to "0" eliminate echoing of the SAVE command.
  56.  
  57. Some ideas for extra features are: (a) ability to turn on/off (b) prompts
  58. to change length of time (c) prompt the user to save (i.e. alarm) and (d)
  59. have a verify for saving.  (The verify idea would add one or two minutes
  60. to the time limit to allow the user some time to complete a task without
  61. interruption).  The main reason that these are not included is because
  62. SAVE.LSP is meant to be useable with any menu system.  Adding new commands
  63. to an existing menu is sometimes difficult (i.e. encryption, no MNU file,
  64. no available space).
  65.  
  66. --< Useage >---
  67.  
  68. To load/use SAVE.LSP type:
  69.  
  70.     Command: (load "save") [ENTER]
  71.  
  72. Include a pathname if necessary.  Once SAVE.LSP is loaded, it is running.
  73.  
  74. On menus that are easily modified, it may be desirable to change the SAVE
  75. menu macro to be:
  76.  
  77.     [SAVE]^C^C^P(if (null C:SAVE) (load "SAVE"));^PSAVE
  78.  
  79. This will automatically load SAVE.LSP.
  80.  
  81. --< Who Dunnit? >---
  82.  
  83. Jason Osgood
  84. Alacrity
  85. 12405 SE 25th Street
  86. Bellevue, WA 98005
  87. (206)746-0680
  88.  
  89. CompuServe: 73417,1756
  90.  
  91. <End Of File>