- ;x方向拉伸
- (defun c:tt()
- (setq ss (ssget))
- (setq pt (getpoint "\n选择基点"))
- (setq p1 (getpoint "\n选择终点"))
- (setq p2 (list (car p1) (cadr pt)))
- (command ".STRETCH" ss "" "non" pt "non" p2)
- )
- ;y方向拉伸
- (defun c:ee()
- (setq ss (ssget))
- (setq pt (getpoint "\n选择基点"))
- (setq p1 (getpoint "\n选择终点"))
- (setq p2 (list (car pt) (cadr p1)))
- (command ".STRETCH" ss "" "non" pt "non" p2)
- )
|