本帖最后由 自贡黄明儒 于 2014-2-15 20:45 编辑
今天就写了这点代码,奉献给明经。
还是干活挣钱要紧。
如果觉得缺少了函数,不要发问,谢谢啊!
- ;; 亮显选择集或对象(夹点不显示) 函数
- (defun ayEntSSHighLight (SSorEntName / oldGrips)
- (setq oldGrips (getvar "Grips"))
- (setvar "Grips" 0)
- (cond ((= (type SSorEntName) 'PICKSET)
- (sssetfirst nil SSorEntName)
- )
- ((= (type SSorEntName) 'ENAME)
- (sssetfirst nil (ssadd SSorEntName (ssadd)))
- )
- )
- (setvar "Grips" oldGrips)
- )
(defun HH:ayEntSSHighLight (SSorEntName / oldGrips)
(defun EntHighLight (e / PTS)
(setq pts (HH:Ent4pt e T))
(grvecs (list 1
(car pts)
(cadr pts)
1
(cadr pts)
(caddr pts)
1
(caddr pts)
(cadddr pts)
1
(cadddr pts)
(car pts)
)
)
)
(cond ((= (type SSorEntName) 'PICKSET)
(repeat (setq n (sslength SSorEntName))
(EntHighLight (ssname SSorEntName (setq n (1- n))))
)
)
((= (type SSorEntName) 'ENAME)
(EntHighLight SSorEntName)
)
)
)
;; 亮显选择集或对象(夹点不显示) 函数 |