本帖最后由 xyp1964 于 2011-6-5 09:10 编辑

- ;;需要e派工具箱的支持:http://e.ys168.com/?xyp1964
- (defun c:tt ()
- (CMDLA0)
- (setq s0 (entlast))
- (command "pline")
- (while (/= 0 (getvar "cmdactive"))
- (command pause)
- )
- (xyp-Curve2Blx (entlast) 80 60 0)
- (setq ptn (reverse (xyp-get-Vertexs (entlast) 0))
- p2 (car ptn)
- p1 (cadr ptn)
- rad (angle p1 p2)
- p3 (polar p2 rad 200)
- p3a (polar p3 rad -80)
- )
- (command "pline" p2 "w" 0 0 p3a "w" 50 0 p3 "")
- (xyp-PeditJoin (xyp-SSelEntnext s0) 0)
- (CMDLA1)
- )
|