home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
vrac
/
apr94cad.zip
/
TIP970A.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1994-03-11
|
2KB
|
39 lines
; TIP970A.LSP: ATXTMUN.LSP Automatic Numbers and Letters
; (c)1994, Bill Bratt
; *****************************************************************
; ATXTNUM.LSP
; *****************************************************************
; This AutoLISP routine is by: Bill Bratt 10-06-92
; This function will do TEXT followed by a NUMBER
; at any spacing and text height.
; This can be used for room finish or door schedules where an area
; letter is required.
; *****************************************************************
(Defun C:ATXTNUM ( / ECH G P1 line_spac txt_ht txt s_num e_num quant num )
(Setq ECH (Getvar "Cmdecho"))
(Setq G (Getvar "Blipmode"))
(Setvar "Cmdecho" 0)
(Setvar "Blipmode" 0)
(Setq p1 (Getpoint "\nPick Starting point: "))
(Setq line_spac (Getdist P1 "\nDistance between letters: "))
(Setq txt_ht (Getdist P1 "\nPick or Enter Text height: "))
(setq txt (getstring nil "\nEnter Area Letter: "))
(setq s_num (getint "\nEnter Starting Number: "))
(setq e_num (getint "\nEnter Ending Number: "))
(setq quant (+ (- e_num s_num) 1))
(setq num s_num)
(repeat quant
(setq txt_num (itoa num))
(setq txtnum ( strcat txt txt_num))
(command "text" p1 txt_ht "0" txtnum)
(setq p1 (list (car p1) (- (cadr p1) line_spac))) (terpri)
(setq num (+ num 1))
)
(Setvar "Blipmode" G)
(Setvar "Cmdecho" ECH)
)