 - ;;直接复制图块
- (defun c:tt ()
- (if (and (setq s0 (car (entsel "\n选择图块<退出>: ")))
- (setq ss (ssget '((0 . "LWPOLYLINE"))))
- (setq p0 (cdr (assoc 10 (entget s0))))
- (setq i -1)
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (command "copy" s0 "" p0 (vlax-curve-getStartPoint s1))
- )
- )
- (princ)
- )
|