几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(AutoLISP) (http://www.dimcax.com/hust/forumdisplay.php?f=178)
-   -   如何修改标注 (http://www.dimcax.com/hust/showthread.php?t=11828)

yang686526 2009-04-26 07:01 PM

如何修改标注
 
如何修改标注
www.dimcax.com
如何修改标注
只改标注的数值。实际长度不改。
d
ddedit命令就可以
d
试试这个程序:
(setq txt_de "100")
(defun c:de (/ ss txt)
(setvar "cmdecho" 0) (princ "\n 选择需修改的标注:")
(setq ss (ssget))
(if ss (progn (princ "\n 请输入字符(空格=恢复)<\"")(princ txt_de)
(setq txt (getstring t "\">:"))
(cond ((= txt " ")(setq txt ""))
((= txt "")(setq txt txt_de))
(t (setq txt_de txt))
)
(command "dimedit" "n" txt "p" "")
))(princ)
)
(princ "标注修改程序 命令de")(princ)


所有的时间均为北京时间。 现在的时间是 11:06 PM.