明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: luyu9635

有记忆的移动

  [复制链接]
发表于 2016-1-7 18:01:15 | 显示全部楼层
谢谢楼主赞一个
发表于 2016-1-30 16:35:40 | 显示全部楼层
程序在哪里?
发表于 2016-4-4 21:37:29 | 显示全部楼层
用了海盗的,
发表于 2016-4-6 11:20:59 | 显示全部楼层
为什么什么都没有呢?
发表于 2016-4-30 11:59:21 | 显示全部楼层
来学习下啊,感谢
发表于 2016-5-2 13:19:32 来自手机 | 显示全部楼层
这个功能不错,支持一下!
发表于 2016-5-2 17:43:10 | 显示全部楼层
1111111111111111111111111111111111
发表于 2016-5-3 09:55:40 | 显示全部楼层
zhong876158 发表于 2014-9-20 09:34
有同感,运行后影响了正交模式

照着论坛记忆拉伸的程序改成了记忆移动,同时感谢Z大!

;;;;============================================================
;;;;========================记忆移动============================
;;;;============================================================
;源地址http://bbs.mjtd.com/forum.php?mo ... 1&fromuid=38464
(defun c:MM (/ basicpoint old_ORTHOMODE pt)
  (setq old_ORTHOMODE (getvar "ORTHOMODE"))
  (setvar "ORTHOMODE" 1)
  (if (= nil S_distance)
    (progn (setq S_distance (getreal "\n输入移动距离:"))
    )
    (progn (setq s_disyd (getreal
                           (strcat "\n输入移动距离<" (rtos S_distance) ">")
                         )
           )
           (if (= nil s_disyd)
             (setq s_disyd S_distance)
           )
           (setq S_distance s_disyd)
    )
  )
  (command ".move" (ssget) "")
  (setq basicpoint (getpoint "\n指定基点:"))
  (setq pt (getpoint basicpoint "\n指定方向:"))
  (command basicpoint
           (polar basicpoint (angle basicpoint pt) S_distance)
  )
  (setvar "ORTHOMODE" old_ORTHOMODE)
  (princ)
)



;;;;============================================================
;;;;================记忆移动100 200 300 400 50==================
;;;;============================================================
(defun c:M1 (/ S_distance basicpoint old_ORTHOMODE pt)
  (setq old_ORTHOMODE (getvar "ORTHOMODE"))
  (setvar "ORTHOMODE" 1)
  (setq S_distance 100)
  (command ".move"  (ssget) "")
  (setq basicpoint (getpoint "\n指定基点:"))
  (setq pt (getpoint basicpoint "\n指定方向:"))
  (command basicpoint (polar basicpoint (angle basicpoint pt) S_distance))
  (setvar "ORTHOMODE" old_ORTHOMODE)
  (princ)
)

(defun c:M2 (/ S_distance basicpoint old_ORTHOMODE pt)
  (setq old_ORTHOMODE (getvar "ORTHOMODE"))
  (setvar "ORTHOMODE" 1)
  (setq S_distance 200)
  (command ".move"  (ssget) "")
  (setq basicpoint (getpoint "\n指定基点:"))
  (setq pt (getpoint basicpoint "\n指定方向:"))
  (command basicpoint (polar basicpoint (angle basicpoint pt) S_distance))
  (setvar "ORTHOMODE" old_ORTHOMODE)
  (princ)
)

(defun c:M3 (/ S_distance basicpoint old_ORTHOMODE pt)
  (setq old_ORTHOMODE (getvar "ORTHOMODE"))
  (setvar "ORTHOMODE" 1)
  (setq S_distance 300)
  (command ".move"  (ssget) "")
  (setq basicpoint (getpoint "\n指定基点:"))
  (setq pt (getpoint basicpoint "\n指定方向:"))
  (command basicpoint (polar basicpoint (angle basicpoint pt) S_distance))
  (setvar "ORTHOMODE" old_ORTHOMODE)
  (princ)
)

(defun c:M4 (/ S_distance basicpoint old_ORTHOMODE pt)
  (setq old_ORTHOMODE (getvar "ORTHOMODE"))
  (setvar "ORTHOMODE" 1)
  (setq S_distance 400)
  (command ".move"  (ssget) "")
  (setq basicpoint (getpoint "\n指定基点:"))
  (setq pt (getpoint basicpoint "\n指定方向:"))
  (command basicpoint (polar basicpoint (angle basicpoint pt) S_distance))
  (setvar "ORTHOMODE" old_ORTHOMODE)
  (princ)
)

(defun c:M5 (/ S_distance basicpoint old_ORTHOMODE pt)
  (setq old_ORTHOMODE (getvar "ORTHOMODE"))
  (setvar "ORTHOMODE" 1)
  (setq S_distance 50)
  (command ".move"  (ssget) "")
  (setq basicpoint (getpoint "\n指定基点:"))
  (setq pt (getpoint basicpoint "\n指定方向:"))
  (command basicpoint (polar basicpoint (angle basicpoint pt) S_distance))
  (setvar "ORTHOMODE" old_ORTHOMODE)
  (princ)
)
回复 支持 1 反对 0

使用道具 举报

发表于 2017-12-27 15:34:31 | 显示全部楼层
6666666666666666
发表于 2017-12-27 21:03:19 | 显示全部楼层
正在找这 谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-16 02:26 , Processed in 0.169239 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表