本帖最后由 lucas_3333 于 2015-5-15 20:34 编辑
很简单的源码
原理很简单
FillMode=0, Regen
FillMode=1, Regen
改组码
- (defun c:hatchdisplay ( / a b c d e)
- (setq
- a (ssget "x" (list (cons 0 "hatch")))
- b (sslength a)
- c 0.0
- ht (IF ( = ht 0 ) 1 0)
- )
- (while (setq d (ssname a c))
- (setq
- e (entget d)
- e (append e (list (cons 60 ht)))
- )
- (entmod e)
- (setq c (1+ c))
- )
- )
|