435| 2
|
[提问] 求助:图层名+后缀 |
15明经币
最佳答案(defun C:TCXG(/ #layerdata1 #newlayername #pickdata1 #pickdata2 #picklayer1 #pickname1 #pickname2 #picktxt2)
;获取需要修改图层名的对象的信息
(princ "\n点选需要修改图层名的对象")
(setq #pickname1 (car (entsel)))
(setq #pickdata1 (entget #pickname1))
(setq #picklayer1 (cdr (assoc 8 #pickdata1)));获取对象图层名
;获取原图层信息
(setq #layerdata1 (tblsearch "layer" #picklayer1))
;获取后 ...
| ||
发表于 2024-6-19 10:50:23
|
显示全部楼层
| ||
| ||