CompuServe Messages

Mystery variable

    25-Apr-88 17:27:31
Sb: #22175-Mystery variable
Fm: Duff Kurland [Adesk] 72407,2764
To: Michael Murphree 71550,1005
Michael – AutoCAD has a number of built-in "default variables" -such as the last hatch pattern and style, the last text rotation angle, the last system variable referenced by the SETVAR command, and the ending angle for the last line or arc drawn (for continuation) — that are not saved with the drawing and do not have corresponding user-accessible system variables. The name of the last Block inserted is one of these internal variables. You could make the name accessible by redefining the INSERT command in the following fashion: (defun C:INSERT () (setq lastblock (getstring "Block name: ")) (command ".INSERT" lastblock) ) Then issue an "UNDEFINE INSERT" command to cause your revised version to override the built-in version. You could extend this simple example to include the previous value of LASTBLOCK (if non-null) in the prompt, etc. .