home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
vrac
/
mar94cad.zip
/
TIP959.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1994-02-15
|
345b
|
12 lines
; TIP959.LSP: CTR.LSP Centers for Circles (c)1994, Mark H. Miller
(defun C:CTR (/ i ss)
(setq ss (ssget "x" '((0 . "circle"))))
(setq i 0)
(command ".dim")
(repeat (sslength ss)
(command "center" (list (ssname ss i) '(0 0))) ;note that .center won't work
(setq i (1+ i)))
(command "exit")
); end ctr.lsp