- (defun div (ent num pt / I LEN LEN1 LEN2 LEN3 PTS)
- (setq len (- (vlax-curve-getDistAtParam ent (vlax-curve-getEndParam ent))
- (vlax-curve-getDistAtParam ent (vlax-curve-getStartParam ent))
- )
- )
- (setq len1 (/ len num))
- (setq len2 (vlax-curve-getDistAtPoint ent pt))
- (setq len3 (rem len2 len1))
- (setq i -1)
- (setq pts '())
- (repeat num
- (setq pts (cons (vlax-curve-getPointAtDist ent (+ len3 (* len1 (setq i (1+ i))))) pts))
- )
- (reverse pts)
- )
|