下面是网上找到的用LSP写的破解多重插入块的代码,看不懂,哪位高手有空帮忙翻译成VBA也行,非常感谢!
- (defun c:unlk (/ en ent)
- (setq en (entsel "\n请选择被加密的图形:"))
- (if en
- (if (= (cdr (assoc 0 (setq ent (cdr (entget (setq en (car en)))))))
- "INSERT"
- )
- (progn
- (setq ent (entmakex
- (list '(0 . "INSERT")
- (assoc 2 ent)
- (assoc 10 ent)
- )
- )
- )
- (command "_.explode" (entlast))
- (entdel en)
- )
- )
- )
- (princ "\nOK,解密成功。")
- (princ)
- )
|