- (DEFUN C:ERASEC (/ SS SL SN PC R N)
- (SETVAR "CMDECHO" 0)
- (SETQ OLDOS (GETVAR "OSMODE"))
- (SETVAR "OSMODE" 0)
- (DEFUN C:ERASEC (/ SS SL SN PC R N)
- (SETVAR "CMDECHO" 0)
- (SETQ OLDOS (GETVAR "OSMODE"))
- (SETVAR "OSMODE" 0)
- (PRINC "\nPlease Select Circle(s) 请选择圆 :")
- (IF (SETQ SS (SSGET '((0 . "CIRCLE")))) (PROGN
- (SETQ SL (SSLENGTH SS) I 0)
- (REPEAT SL
- (SETQ SN (SSNAME SS I) I (1+ I)
- PC (CDR (ASSOC 10 (ENTGET SN)))
- R (* (CDR (ASSOC 40 (ENTGET SN))) 0.99)
- N 0
- )
- (COMMAND "ZOOM" "C" PC (* 3 R))
- (COMMAND "TRIM" SN "" "F")
- (REPEAT 180
- (COMMAND (POLAR PC (/ (* 2 N PI) 180) R))
- (setq N (1+ N))
- )
- (COMMAND "" "")
- (SETQ N 0)
- (COMMAND "ERASE" "WP")
- (REPEAT 180
- (COMMAND (POLAR PC (/ (* 2 N PI) 180) R))
- (setq N (1+ N))
- )
- (COMMAND "" "" "ZOOM" "P")
- )
- ))
- (SETVAR "OSMODE" OLDOS)
- (SETVAR "CMDECHO" 1)
- (PRINC)
- )(princ "\nType ERASEC to start.")
- (princ)
|