明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2067|回复: 3

[讨论] .....................................

[复制链接]
发表于 2005-2-8 18:17:00 | 显示全部楼层 |阅读模式
本帖最后由 贱人 于 2025-4-18 15:55 编辑

.....................................
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2005-2-9 15:48:00 | 显示全部楼层
(defun c:rq (/ tmp cy cm cd hh mm ss ms txt pt1)
(setq tmp (rtos (getvar "cdate") 2 16))
(setq cy (rtos (atof (substr tmp 1 4)) 2 0)
cm (rtos (atof (substr tmp 5 2)) 2 0)
cd (rtos (atof (substr tmp 7 2)) 2 0)
hh (rtos (atof (substr tmp 10 2)) 2 0)
mm (rtos (atof (substr tmp 12 2)) 2 0)
ss (rtos (atof (substr tmp 14 2)) 2 0)
ms(rtos (atof (substr tmp 16 2)) 2 0)
)
(setq txt (strcat "现在是:" cy "年"cm "月" cd "日" hh"时" mm "分" ss "秒" ms "毫秒"))
(setq pt1 (getpoint "\n\t放置点 : "))
(command "text" pt1 "" "" txt)
(princ)
)

发表于 2018-4-4 19:43:21 | 显示全部楼层
挺好的东西!我只需要他显示年月日,中间用"-"号隔开就好。自己修改修改,研究一下。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-19 17:45 , Processed in 0.388915 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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