本帖最后由 Gu_xl 于 2013-7-8 09:27 编辑
xhq1954425 发表于 2013-7-7 20:31 
谢谢你!原本想是多有不便,但是既然你说了就必有其道理!我 ...
最基本的lengthen命令都忘了吗?
 - (defun c:tt ()
- (initget 7)
- (setq d (getreal "\n延伸距离:"))
- (setq e (car(entsel "\n选择曲线:")))
- (command "_lengthen" "de" d)
- (command (list e (trans (vlax-curve-getStartPoint e) 0 1)) (list e (trans (vlax-curve-getEndPoint e) 0 1)) "")
- (princ)
- )
|