- ;;判断图元是否为剪裁块
- (defun IsXClip (en2 / xdict)
- (if (setq xdict (cdr (assoc 360 (entget en2))))
- (IsXClip xdict)
- (if
- (and (eq "SPATIAL_FILTER" (cdr (assoc 0 (setq en2 (entget en2)))))
- (eq 1 (cdr (assoc 71 en2)))
- )
- en2
- )
- )
- )
- ;如果是裁剪块,则生成边界备用
- (if (setq el (IsXClip (car blk)))
- (progn
- (setq IsXC T)
- (command "xclip" (car blk) "" "P") ;生成裁剪边界
- (setq outline (entlast)) ;保存边界信息
- (entdel outline) ;先删除,回头再恢复,防止干扰
- )
- )
|