只需一步,快速开始
我写的是这样的
(setq n 1) (setq nn (atof (get_tile "floor")))(while (<= n nn) (if (> (setq dcl_id (load_dialog "support")) 0) (if (new_dialog "floor_height" dcl_id) (progn (set_tile "prompt1" (strcat "请输入第" (rtos n 2) "层高") ) (action_tile "accept" "(GetData44) (done_dialog 1)") (action_tile "cancel" "(done_dialog 0)") (setq dlgans (start_dialog)) (unload_dialog dcl_id) ) ) ) (setq n (1+ n)) )
nn是总共层数,现在我只能得到最后层高,每层高得不到,求各位帮我解答
使用道具 举报
谢谢ls的我忘了把GetData复制上来了是这样写的
(defun GetData44 () (setq floor_height (get_tile "data")) )
问题是while循环只读取最后一次循环得值也就是floor_height只有我最后一次输入的层高数据,我要的是我每次循环写进去的层高数据都要,不知道怎么办了,谢谢帮我回答不胜感激
请问
(SETQ FHLIST (APPEND FHLIST (LIST (STOR floor_height)))) ;加到表的未尾
这一句里的STOR变量是什么意思??谢谢斑竹阿
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-5-19 03:36 , Processed in 0.166416 second(s), 26 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.