本帖最后由 xyp1964 于 2020-11-30 18:09 编辑
 - ;; tt(框选统计圆数量)
- (defun c:tt () (if (and (setq ss (ssget '((0 . "CIRCLE")))i -1)
- (setq p0 (getpoint "\n基点<退出>: "))
- )
- (setq lst (xyp-Ss2List ss)
- lst (mapcar '(lambda (x) (xyp-DXF 40 x)) lst)
- lst (xyp-List-Count lst)
- aa (xyp-TableAuto p0 lst '("序号" "圆半径" "数量"))
- )
- )
- (princ)
- )
|