本帖最后由 尘缘一生 于 2014-5-24 20:30 编辑
自动整理图,炸开,清理等!
希望大家补充更多,打开图,就自动清理完成所有的,别浪费设计者宝贵时间!- (defun C:T-EXPLODE(/ s p n nam)
- ;; 炸开属性块,属性转文字
- (setq s nil)
- (if (setq s(ssget "X" (list (cons 0 "INSERT")(cons 66 1))))
- (progn
- (vl-load-com)
- (setq p(sslength s))
- (setq n 0 )
- (undobegin)
- (setq p(- p 1))
- (while (<= n p)
- (a2t (ssname s n))
- (setq n (+ n 1))
- (undoend)
- )
- )
- )
- (setq s nil)
- ;; 炸开各种块、MTEXT字体,,,,,,,,,,
- (setq s nil)
- (if (setq s(ssget "X" (list (cons 0 "MTEXT,DIM*,TCH*,INSERT"))))
- (progn
- (setq p(sslength s))
- (setq n 0 )
- (setq p (- p 1))
- (while (<= n p)
- (setq nam(ssname s n))
- (command "EXPLODE" nam "")
- (setq n (+ n 1))
- )
- )
- )
- (command "_.PURGE" "a" "*" "N")
- (command "regenall")
- )
|