 - (defun SsEntnext (en / ss)
- "SsEntnext 返回某图元后的图元集并设为当前 (SsEntnext en)"
- (setq ss (ssadd))
- (while (setq en (entnext en)) (ssadd en ss))
- (if (and ss (> (sslength ss) 0))
- (progn (command "select" ss "") (ssget "p"))
- )
- )
- (defun c:tt ()
- (setq s0 (entlast))
- (repeat 10 (command "line" "non" '(0 0) "non" '(1000 1000) ""))
- (setq ss (SsEntnext s0))
- (sssetfirst nil ss)
- (princ)
- )
|