- (defun offsetCreate (low high)
- ;; Alan J. Thompson, 11.01.10
- (if (apply (function and) (mapcar (function (lambda (x) (eq (type x) 'INT))) (list low high)))
- ((lambda (i)
- (while (<= low (setq i (1+ i)) high)
- (eval (list 'defun
- (read (strcat "c:" (itoa i)))
- nil
- (list 'command "_.offset" i)
- '(princ)
- )
- )
- )
- )
- (1- low)
- )
- )
- )
- (defun MakeOffsets ( _min _max _inc )
- (repeat (1+ (fix (/ (- _max _min) _inc)))
- (eval
- (list 'defun (read (strcat "C:" (vl-string-translate "." "," (vl-princ-to-string _min)))) nil
- (list 'command "_.offset" _min)
- (list 'princ)
- )
- )
- (setq _min (+ _min _inc))
- )
- (princ)
- )
|