本帖最后由 USER2128 于 2018-5-18 08:40 编辑
- ;;;=================================================================*
- ;;;差值程序,减去、而不删除所要减去的实体
- ;;; BY USER2128(HLCAD)
- (defun c:SU1 (/ ss1 ss2)
- (and (princ "\n选择要从中减去的实体、曲面和面域...")
- (setq ss1 (ssget ))
- (princ "\n选择要减去的实体、曲面和面域...")
- (setq ss2 (ssget ))
- )
- (setq ss2 (vl-remove-if 'Listp (mapcar 'cadr (ssnamex SS2))))
- (foreach en ss2
- (command "_.copy" en "" "0,0,0" "@")
- (command "_.subtract" ss1 "" (entlast) "")
- )
- (princ)
- )
- ;;;=================================================================*
|