home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
vrac
/
apr94cad.zip
/
TIP970B.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1994-03-11
|
1KB
|
35 lines
; TIP970B.LSP: AUTOTXT.LSP Automatic Letters and Numbers
; (c)1994, Bill Bratt
; *****************************************************************
; AUTOTXT.LSP
; *****************************************************************
; This AutoLISP routine is by: Bill Bratt 8-27-91
; This function will do the alphabet in a row
; at any angle, spacing and text height.
; This could be used for schedules.
; *****************************************************************
(Defun C:AUTOTXT ( / ECH G A P1 C A1 D E)
(Setq ECH (Getvar "Cmdecho"))
(Setq G (Getvar "Blipmode"))
(Setvar "Cmdecho" 0)
(Setvar "Blipmode" 0)
(Setq A (Getint "\nHow many letters do you want to print <1 to 26>: "))
(if (> A 26)
(setq A 26)
)
(Setq P1 (Getpoint "\nStarting point: "))
(Setq C (Getdist P1 "\nDistance between letters: "))
(Setq A1 (Getangle P1 "\nAngle to run letters: "))
(Setq D (Getdist P1 "\nText height: "))
(Setq E 65)
(Repeat A
(Setq F (chr E))
(Command "Text" "C" P1 D 0 F)
(Setq E (+ E 1))
(Setq P1 (Polar P1 A1 C))
)
(Setvar "Blipmode" G)
(Setvar "Cmdecho" ECH)
)