本帖最后由 【KAIXIN】 于 2012-6-7 10:02 编辑
- ;选中状态对象 SS为对象
- ;(KX-sssetfirst SS)
- (defun KX-sssetfirst(SS)
- (if SS (sssetfirst nil SS))
- )
- ;亮选对象 SS为(car(entsel "\n选择参考实体: "))
- ;(KX-redraw3 S1)
- (defun KX-redraw3(S1)
- (IF S1 (redraw S1 3))
- )
- ;选中状态对象
- (defun c:XX()
- (setvar "cmdecho" 0)
- (setq co (acad_colordlg 7))
- (setq SS(ssget "X" (list (cons 62 co))))
- (KX-sssetfirst SS)
- (princ))
- ;亮显指定颜色的实体
- (defun c:XXX()
- (setvar "cmdecho" 0)
- (setq co (acad_colordlg 7))
- (setq SS(ssget "X" (list (cons 62 co)))
- X -1
- )
- (while (setq s1 (ssname ss (setq X (1+ X))))
- (KX-redraw3 s1))
- (princ)
- )
该贴已经同步到 【KAIXIN】的微博 |