1940| 11
|
求写一个删除指定图层的图元的程序,希望大家帮减轻负担。 |
20明经币
最佳答案(defun c:TT()
(setvar "CMDECHO" 0)
(setq old_lay (getvar "clayer"))
(command "layer" "u" "*" "")
(command "layer" "on" "*" "")
(if (not (tblsearch "layer" "autocut"))
(command "-layer" "m" "autocut" "c" "3" "" ""))
(setvar "clayer" "0")
(command "_.erase" (ssget ":s" '((8 . "autocut"))) "")
(setvar "clayer" old_lay)
(setvar "CMDECHO" 1)
)
| ||
发表于 2020-11-7 12:19:14
|
显示全部楼层
点评
已经在用了,谢谢,
| ||
发表于 2020-11-8 21:04:17
|
显示全部楼层
评分 | ||
发表于 2020-11-8 21:08:14
|
显示全部楼层
| |
| ||
| ||
发表于 2020-11-11 14:48:49
|
显示全部楼层
| ||
| ||
发表于 2022-3-28 20:22:18
|
显示全部楼层
| ||