明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1005|回复: 1

对话框下拉按钮程式的问题!

[复制链接]
发表于 2005-12-5 10:14 | 显示全部楼层 |阅读模式

各位,我写了一个小程序,用到了DCL的下拉对话框,程式的一部份如下所示:

(defun sub_ppp(vvs)
 (cond ((= ppp 5) (setq oldpop (get_tile "pop"))
                  (setq newpop (nth (atoi vvs) plotname))
                  (set_tile "pop" (strcat oldpop newpop))
           (setq acadtool (nth (atoi (setq pop (get_tile "pop"))) plotname))
           )
  
      ((= ppp 6) (setq oldacad (get_tile "acad"))
                 (setq newacad (nth (atoi vvs) plotstyle))
                 (set_tile "acad" (strcat oldacad newacad))
                 (setq output (nth (atoi (setq acad (get_tile "acad"))) plotstyle))
                 )
      ((= ppp 7) (setq oldpapre1 (get_tile "papre1"))
                 (setq newpapre1 (nth (atoi vvs) plotpapre1))
                 (set_tile "papre1" (strcat oldpapre1 newpapre1))
                 (setq size1 (nth (atoi (setq papre1 (get_tile "papre1"))) plotpapre1))
                 )
       ((= ppp 8) (setq oldpapre2 (get_tile "papre2"))
                 (setq newpapre2 (nth (atoi vvs) plotpapre2))
                 (set_tile "papre2" (strcat oldpapre2 newpapre2))
                 (setq size2 (nth (atoi (setq papre2 (get_tile "papre2"))) plotpapre2))
                 )
    
  )
  )

比如我现在的ppp =6时执行到 (atoi vvs )时就出现如下错误不知怎么回事.

; error: bad argument type: consp nil

请高手指教一下

发表于 2005-12-5 10:28 | 显示全部楼层
把全部代码贴出来,包括DCL代码,要不检查一下 oldacad    plotstyle 两个变量的值
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-3 01:07 , Processed in 0.401071 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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