 - (defun c:tt ()
- (setq h1 (Udist 7 "" "拉伸高度<输入或鼠标直接量取>" h1 nil)
- dd (Udist 7 "" "偏移距离<输入或鼠标直接量取>" dd nil)
- )
- (command "pline")
- (while (/= (getvar "CmdActive") 0)
- (command pause)
- )
- (setq xx (entlast))
- (xyp-Offset xx dd t nil nil)
- (setq yy (entlast))
- (command "_.MOVE" yy "L" "" '(0 0 0) (list 0 0 h1))
- (vl-cmdf "extrude" xx "" h1 "")
- )
|