回复 tm20038175 的帖子
 - (defun SortPointByCurve (points curve / pl1 xx nn)
- (setq pl1 (mapcar '(lambda (xx /)
- (vlax-curve-getparamatpoint
- curve
- (vlax-curve-getclosestpointto curve xx)
- )
- )
- points
- )
- )
- (mapcar '(lambda (nn) (nth nn points))
- (vl-sort-i pl1 '<)
- )
- )
|