- ;; tt1 “xyz”和tt2"xYz"的不同效果示意
- (defun c:tt1 ()
- (setq ss (ssget '((0 . "*CIRCLE")))
- lst (HH:ssPts:Sort ss "xyz" 0.5)
- i 0
- )
- (mapcar '(lambda (x)
- (setq i (1+ i))
- (xyp-Text 5 (xyp-9pt x 5) (itoa i))
- )
- lst
- )
- (princ)
- )
- (defun c:tt2 ()
- (setq ss (ssget '((0 . "*CIRCLE")))
- lst (HH:ssPts:Sort ss "xYz" 0.5)
- i 0
- )
- (mapcar '(lambda (x)
- (setq i (1+ i))
- (xyp-Text 5 (xyp-9pt x 5) (itoa i))
- )
- lst
- )
- (princ)
- )
|