- (defun M_FZ(layer2)
- (setvar "cmdecho" 0)
- (setq enn (ssget))
- (setq n 0)
- (repeat (setq nnn (sslength enn))
- (setq ent (ssname enn n))
- (command "copy" ent "" "0,0" "0,0")
- (setq ent (entlast))
- (setq ent_data(entget ent))
- (setq ent_data (subst (cons 8 layer2) (assoc 8 ent_data) ent_data ))
- (entmod ent_data)
- (setq n (1+ n))
- )
- )
- (defun c:9V() (M_FZ "9") (M_FZ "99") (M_FZ "999") (M_FZ "9999")) (princ))
大神们,帮忙解决一下这个复制到层问题
这样需要选多好多次才能复制完成,能不能帮该成只选一次就能完成?
|