http://www.cadtutor.net/forum/showthread.php?52530-绘制多段线所有顶点的圆
- (defun C:PCIRC (/ coords ent rad)
- (setq rad (getreal"\nEnter radius: "))
- (while (setq ent (entsel "\nSelect polyline (or press Enter to Exit) >> "))
- (setq ent (car ent))
- (setq coords (vl-remove-if 'not
- (mapcar
- (function (lambda(p)
- (if (= 10 (car p))(cdr p))))
- (entget ent))))
-
- (foreach pt coords
- (command "_circle" "_non" pt rad)
- )
- )
- (princ)
- )
|