本帖最后由 x_s_s_1 于 2024-7-2 10:09 编辑
随手,未测试,(a_laythw '("1""2""3"))。第二个if可以去掉。也可以按这个套路改成逐个command,慢
- (defun a_laythw (laylist / ent);_in(list "1""2""3"...)
- (foreach lay laylist
- (if (tblsearch "layer" lay)
- (progn
- (setq ent (entget (tblobjname "layer" lay)))
- (if (= 1 (cdr (assoc 70 ent)))
- (entmod (subst (cons 70 0) (assoc 70 ent) ent)))))))
|