Shoey 发表于 2022-7-5 20:21:34

列出嵌套的外部参照图层属性

大家好
 
我想知道是否有类似于XLIST命令的方法来显示和列出外部参照的图层特性,但我想列出的这些外部参照是附着到父外部参照的外部参照。据我所知,AutoCAD中的XLIST仅列出父层特性。它不会深入挖掘嵌套的外部参照。我想Lisp程序就能做到?
如果有人知道并愿意分享,我们将不胜感激。
 
非常感谢

Lee Mac 发表于 2022-7-5 20:49:25

写得很快,但可能有帮助:
 
(defun c:laylist ( / ent ind sel )
   (setq ind 0)
   (if (setq sel (nentselp))
       (foreach ent (reverse (cons (car sel) (cadddr sel)))
         (princ "\n")
         (repeatind (princ "   "))
         (if (< 0 ind)(princ "|\n"))
         (repeatind (princ "   "))
         (princ "+--+ ")
         (princ (cdr (assoc 8 (entget ent))))
         (setq ind (1+ ind))
       )
   )
   (princ)
)

Shoey 发表于 2022-7-5 21:09:53

李-这不是第一次了,谢谢。
感谢您抽出时间回答我的问题。
 
Shoey鞋

Lee Mac 发表于 2022-7-5 21:27:00

欢迎你Shoey-该计划显然可以广泛扩展,以列出其他属性。
页: [1]
查看完整版本: 列出嵌套的外部参照图层属性