本帖最后由 hhh454 于 2012-6-7 20:47 编辑
水上浮舟 发表于 2012-6-6 12:35
能说一说,具体的操作步骤么,谢谢!
- (defun c:zy()
- (princ "\n左移动10mm")
- (setq ss (ssget)
- pt (list 0.0 0.0 0.0)
- pt2 (list -10.0 0.0 0)
- )
- (command "move" ss "" pt pt2)
- (princ))
- (defun c:yy()
- (princ "\n右移动10mm")
- (setq ss (ssget)
- pt (list 0.0 0.0 0.0)
- pt2 (list 10.0 0.0 0)
- )
- (command "move" ss "" pt pt2)
- (princ))
- (defun c:sy()
- (princ "\n上移动10mm")
- (setq ss (ssget)
- pt (list 0.0 0.0 0.0)
- pt2 (list 0.0 10.0 0)
- )
- (command "move" ss "" pt pt2)
- (princ))
- (defun c:xy()
- (princ "\n下移动10mm")
- (setq ss (ssget)
- pt (list 0.0 0.0 0.0)
- pt2 (list 0.0 -10.0 0)
- )
- (command "move" ss "" pt pt2)
- (princ))
|