alanjt 发表于 2022-7-6 10:49:40

This may be of interest:

(defun AT:GetVertices (e / p l) ;; Return point at each vertex of curve ;; e - curve to evaluate (Arc, Line, *Polyline, Spline) ;; Alan J. Thompson, 09.30.10 (if e   (if (eq (setq p (vlax-curve-getEndParam e)) (fix p))   (repeat (setq p (1+ (fix p)))       (setq l (cons (vlax-curve-getPointAtParam e (setq p (1- p))) l))   )   (list (vlax-curve-getStartPoint e) (vlax-curve-getEndPoint e))   ) ))
页: 1 [2]
查看完整版本: 多段线上的点