1063| 6
|
[源码] 锁定已知图层名,图层名如何支持通配符 |
2明经币
最佳答案(defun C:laylock1 ( / acaddocument acadobject layersobj lay_list obj)
(setq AcadObject (vlax-get-acad-object)
AcadDocument (vla-get-ActiveDocument AcadObject)
LayersObj (vla-get-layers AcadDocument)
);end setq
;;;(setq lay_list (list "bg1" "bg2" "bg3" "bg4" “bg5”));不需要锁定的图层列表,锁定这些以外的图层
(vlax-for obj LayersObj
(if (wcmatch (vla-get-name ...
| ||
发表于 2023-5-17 11:17:32
|
显示全部楼层
| ||
发表于 2023-5-17 14:34:52
|
显示全部楼层
| ||
| ||
| ||
发表于 2023-9-25 11:08:24
|
显示全部楼层
| ||