不一定对
- (defun c:tt(/ dis en lst n os)
- (setq os (getvar "osmode")
- en (car (entsel "\nSelect Object:"))
- n (getint "\n等分数:")
- dis (/ (vlax-curve-getdistatparam
- en
- (vlax-curve-getendparam en))
- n
- 1.)
- n (1- n))
- (setvar "osmode" 16419)
- (repeat n
- (setq
- lst (cons (vlax-curve-getpointatdist en (* n dis)) lst)
- n (1- n)))
- (foreach n lst
- (vl-cmdf "break" en "f" n "@")
- (setq en (entlast)))
- (setvar "osmode" os))
|