选择节点少于3个的三维多段线
- (defun vxs (e / i v lst)
- (setq i 0)
- (while
- (setq v (vlax-curve-getpointatparam e (setq i (1+ i))))
- (setq lst (cons v lst))
- )
- (reverse lst))
- ;;;;;;;;;;;;;;;
- (defun c:xz11 (/ kk lst i ent pts len)
- (setq lst (ssget '( (0 . "polyline") (8 . "0,sjw")) ) )
- (setq i 0)
- (setq kk (ssadd))
- (while (< i (sslength lst))
- (setq ent (ssname lst i))
- (setq pts (vxs ent))
- (setq len (length pts))
- (if (< len 3) (ssadd ent kk)) ;;;选择节点少于3个的三维多段线
- (setq i (+ i 1))
-
-
- )
- (sssetfirst nil kk)
-
- )
|