几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   数据库ObjectDBX (http://www.dimcax.com/hust/forumdisplay.php?f=177)
-   -   【转帖】使用command命令时可不可以获得返回值? (http://www.dimcax.com/hust/showthread.php?t=13306)

yang686526 2009-04-28 11:17 AM

【转帖】使用command命令时可不可以获得返回值?
 
使用command命令时可不可以获得返回值?
www.dimcax.com
使用command命令时可不可以获得返回值?
我有时用到command命令,并设置了一个pause暂停,以待输入字符或点,我如何能获得这个返回值?

something like this
(command "line" pause pause "")
===>
(command "line" (setq pt1 (getpoint "\npoint1: ")) (setq pt2 (getpoint "\npoint2: " pt1)) "")
or
(vl-cmdf "line" (setq pt1 (getpoint "\npoint1: ")) (setq pt2 (getpoint "\npoint2: " pt1)) "")

好像不能吧
command 没有返回值


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