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 >
Wrap
Text File
|
1988-08-10
|
4KB
|
91 lines
SAVE.DOC
Copyright 1988 Alacrity
---< NOTICE >---
SAVE.LSP and SAVE.DOC are intended to be public domain. Please feel free
to distribute freely. Note that no price may be charged for the
distribution of these files. Also, please use SAVE.ARC for uploading to
BBSes and such. Comments and suggestions are welcomed.
---< Introduction >---
SAVE.LSP is a lisp routine that redefines the SAVE command to allow
automatic drawing save. Also included is a feature that remembers the last
filename used for SAVE.
SAVE.LSP should be useable with any existing menu system. The requirements
for using SAVE.LSP with your current menu are (a) sufficient node space and
(b) none of the commands redefined in SAVE.LSP are redefined by other
routines.
This is certainly not the first automatic save routine. Nor will it be the
last (most likely). But it does introduce the idea of redefining commands
versus having to modify menu systems. This allows persons with a closed
menu system to have automatic save. Besides, it's easier to implement.
---< Real Stuff >---
SAVE.LSP redefines the SAVE command to allow the default file name to be
changed. The automatic save routine will use the last filename used by the
SAVE command (versus the name in the DwgName system variable). This allows
continual backup of the current drawing to a separate file.
Redefining the SAVE command is only a part of what SAVE.LSP does. SAVE.LSP
also redefines commonly used commands. An example is the LINE command. It
is modified to run the automatic save routine before starting LINE. The
list of commands that are modified is: LINE, ARC, CIRCLE, PLINE, PEDIT,
TEXT, DTEXT, LAYER, BLOCK, ERASE, COPY and MOVE. This is a fairly sound
representation of the most often used commands. Feel free to remove or add
command definitions as needed. Follow the format shown in SAVE.LSP. The
transparent commands (i.e. ZOOM, PAN, VIEW and SETVAR) are not redefined to
prevent any conflicts (redefining a command with transparent features
compromises the transparent feature). Redefining commands as done in
SAVE.LSP will not effect the operation of menu macros.
The automatic save feature is a simple little routine that checks to see
how long it has been since the drawing has been saved. If it has been
longer than the value in the variable 'lsave' (set to 30), than it saves
the drawing. If not, it does nothing and control goes back to the
redefined command (i.e. LINE). To change the amount of time between saves,
set the variable 'lsave' to number of minutes desired.
The Expert system variable is set to "2" to eliminate "File already exists.
Save anyway Yes/<No>?" prompts, which can mess up menu marcos. Set the
CmdEcho system variable to "0" eliminate echoing of the SAVE command.
Some ideas for extra features are: (a) ability to turn on/off (b) prompts
to change length of time (c) prompt the user to save (i.e. alarm) and (d)
have a verify for saving. (The verify idea would add one or two minutes
to the time limit to allow the user some time to complete a task without
interruption). The main reason that these are not included is because
SAVE.LSP is meant to be useable with any menu system. Adding new commands
to an existing menu is sometimes difficult (i.e. encryption, no MNU file,
no available space).
--< Useage >---
To load/use SAVE.LSP type:
Command: (load "save") [ENTER]
Include a pathname if necessary. Once SAVE.LSP is loaded, it is running.
On menus that are easily modified, it may be desirable to change the SAVE
menu macro to be:
[SAVE]^C^C^P(if (null C:SAVE) (load "SAVE"));^PSAVE
This will automatically load SAVE.LSP.
--< Who Dunnit? >---
Jason Osgood
Alacrity
12405 SE 25th Street
Bellevue, WA 98005
(206)746-0680
CompuServe: 73417,1756
<End Of File>