- (defun c:test(/ a b c el)
- (setq a (read (cdr (assoc 1 (entget (car (entsel "\n选A: "))))))
- b (read (cdr (assoc 1 (entget (car (entsel "\n选B: ")))))))
- (if (and (numberp a) (numberp b))
- (progn
- (setq c (rtos (* (float a) (float b)))
- el (entget (car (entsel "\n选C: "))))
- (entmod (subst (cons 1 c) (assoc 1 el) el))
- )
- )
- (princ)
- )
|