 - ;; tt(梁配筋最大值)
- (defun c:tt ()
- (xyp-StartSc)
- (setq i -1)
- (if (setq ss (ssget '((0 . "text") (1 . "*-*-*"))))
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq lst (xyp-Str2LstSpr (xyp-DXF 1 s1) "-")
- tx (car (vl-sort lst '(lambda (x y) (> (atoi x) (atoi y)))))
- p0 (xyp-9pt s1 5)
- rad (xyp-DXF 50 s1)
- th (xyp-DXF 40 s1)
- pt (polar p0 (- rad (* pi 0.5)) (* th 0.8))
- s2 (xyp-Text 5 pt tx)
- s2 (xyp-SubUpd s2 '(1 40 50 62) (list a th rad 1))
- )
- )
- )
- (xyp-End)
- )
|