本帖最后由 作者 于 2004-5-3 14:14:57 编辑
vl-remove 的纯lsp写法- ;| (x:removeat at lst ) = 表剔除元素;-------------无痕.2004.1
- ;提示; 等同于: (vl-remove element-to-remove list)
- (x:removeat "a" '(58 3 (a . 8) "a" 4.5)) -> (58 3 (A . 8) 4.5)
- |;
- (defun x:removeat (at lst) ;at=atom
- (apply 'append (subst nil (list at) (mapcar 'list lst)))
- )
xex 炸开嵌套块.- ;xex = 炸开嵌套块.-----by 无痕.2004.4
- (defun c:xex ()
- (princ "\n炸开嵌套块.--------------by 无痕.2004.4")
- (setvar "qaflags" 1)
- (setq ss (ssget '((0 . "INSERT"))))
- (while (setq ss (ssget "P" '((0 . "INSERT"))))
- (command ".explode" ss "")
- )(princ)
- )
|