明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1075|回复: 2

驱动连接程序错了,不知如何正确的修改,恳求各位高手帮忙看一下?

[复制链接]
发表于 2011-4-11 22:17:10 | 显示全部楼层 |阅读模式
对话框程序:
dlg_ch:dialog
{label="无抽屉的柜子";
:row{
:column{
:boxed_column{
label="旁板的参数设置";
:row{
:popup_list{
label="旁板的长度";
key="pl";
width=5;
list="850\n1330\n1472\n";
}
:edit_box{width=4;key="ple";}
}
:row{
:popup_list{
label="旁板的宽度";
key="pw";
width=5;
list="450\n500\n";
}
:edit_box{width=4;key="pwe";}
}
:row{
:popup_list{
label="旁板的厚度";
key="pt";
width=5;
list="18\n";
}
:edit_box{width=4;key="pte";}
}
}
:boxed_column{
label="门板的参数设置";
:row{
:popup_list{
label="门板的长度";
key="ml";
width=5;
list="800\n1280\n1440\n";
}
:edit_box{width=4;key="mle";}
}
:row:{
:popup_list{
label="门板的宽度";
key="mw";
width=5;
list="397\n447\n";
}
:edit_box{width=4;key="mwe";}
}
:row{
:popup_list{
label="门板的厚度";
key="mt";
width=5;
list="18\n";
}
:edit_box{width=4;key="mte";}
}
}
:boxed_column{
label="顶板的参数设置";
:row{
:popup_list{
label="顶板的长度";
key="dl";
width=5;
list="800\n900\n";
}
:edit_box{width=4;key="dle";}
}
:row{
:popup_list{
label="顶板的宽度";
key="dw";
width=5;
list="472\n522\n";
}
:edit_box{width=4;key="dwe";}
}
:row{
:popup_list{
label="顶板的厚度";
key="dt";
width=5;
list="25\n";
}
:edit_box{width=4;key="dte";}
}
}
:column{
:boxed_column{
label="底板的参数设置";
:row{
:popup_list{
label="底板的长度";
key="bl";
width=5;
list="760\n860\n";
}
:edit_box{width=4;key="ble";}
}
:row{
:popup_list{
label="底板的宽度";
key="bw";
width=5;
list="448\n498\n";
}
:edit_box{width=4;key="bwe";}
}
:row{
:popup_list{
label="底板的厚度";
key="bt";
width=5;
list="18\n";
}
:edit_box{width=4;key="btw";}
}
}
label="望板的参数设置";
:row{
:popup_list{
label="望板的长度";
key="wl";
width=5;
list="760\n860\n";
}
:edit_box{width=4;key="wle";}
}
:row{
:popup_list{
label="望板的宽度";
key="ww";
width=5;
list="50\n";
}
:edit_box{width=4;key="wwe";}
}
:row{
:popup_list{
label="望板的厚度";
key="wt";
width=5;
list="18\n";
}
:edit_box{width=4,key="wte";}
}
}
:boxed_column{
label="搁板的参数设置";
:row{
:popup_list{
label="搁板的长度";
key="gl";
width=5;
list="760\n860\n";
}
:edit_box{width=4;key="gle";}
}
:row{
:popup_list{
label="搁板的宽度";
key="gw";
width=5;
list="430\n490\n";
}
:edit_box{width=4;key="gwe";}
}
:row{
:popup_list{
label="搁板的厚度";
key="gt";
width=5;
list="18\n";
}
:edit_box{width=4;key="gte";}
}
}
:column{
:boxed_column{
label="背板的参数设置";
:row{
:popup_list{
label="背板的长度";
key="cl";
width=5;
list="791\n1271\n1431\n";
}
:edit_box{width=4;key="cle";}
}
:row{
:popup_list{
label="背板的宽度";
key="cw";
width=5;
list="760\n860\n";
}
:edit_box{width=4;key="cwe";}
}
:row{
:popup_list{
label="背板的厚度";
key="ct";
width=5;
list="8\n";
}
:edit_box{width=4;key="cte";}
}
:boxed_column{
label="拉条板的参数设置";
:row{
:popup_list{
label="拉条板长度";
key="ll";
width=5;
list="760\n860\n";
}
:edit_box{width=4;key="lle";}
}
:row{
:popup_list{
label="拉条板宽度";
key="lw";
width=5;
list="80\n";
}
:edit_box{width=4;key="lwe";}
}
:row{
:popup_list{
label="拉条板厚度";
key="lt";
width=5;
list="18\n";
}
:edit_box{width=4;key="lte";}
}
}
ok_cancel;
}

驱动程序:
(defun showsub1 ()
  (setq jd (load_dialog "dlg_ch"))
  (if (=jd nil)
    (exit)
  )
  (while (>sdt1 1)
    (if (not (new_dialog "dlg_ch" id))
      (exit)
  )
  (action_tile "pl" "(setq pop 1) (sub_pop $value)")
  (action_tile "pw" "(setq pop 2) (sub_pop $value)")
  (action_tile "pt" "(setq pop 3) (sub_pop $value)")
  (action_tile "ml" "(setq pop 4) (sub_pop $value)")
  (action_tile "mw" "(setq pop 5) (sub_pop $value)")
  (action_tile "mt" "(setq pop 6) (sub_pop $value)")
  (action_tile "dl" "(setq pop 7) (sub_pop $value)")
  (action_tile "dw" "(setq pop 8) (sub_pop $value)")   
  (action_tile "dt" "(setq pop 9) (sub_pop $value)")
  (action_tile "bl" "(setq pop 10) (sub_pop $value)")
  (action_tile "bw" "(setq pop 11) (sub_pop $value)")
  (action_tile "bt" "(setq pop 12) (sub_pop $value)")
  (action_tile "wl" "(setq pop 12) (sub_pop $value)")
  (action_tile "ww" "(setq pop 13) (sub_pop $value)")
  (action_tile "wt" "(setq pop 14) (sub_pop $value)")
  (action_tile "gl" "(setq pop 15) (sub_pop $value)")
  (action_tile "gw" "(setq pop 16) (sub_pop $value)")
  (action_tile "gt" "(setq pop 17) (sub_pop $value)")
  (action_tile "cl" "(setq pop 18) (sub_pop $value)")
  (action_tile "cw" "(setq pop 19) (sub_pop $value)")
  (action_tile "ct" "(setq pop 20) (sub_pop $value)")
  (action_tile "ll" "(setq pop 21) (sub_pop $value)")
  (action_tile "lw" "(setq pop 22) (sub_pop $value)")
  (action_tile "lt" "(setq pop 22) (sub_pop $value)")
  (setq sdt1 (start_dialog))
  (if (= sdt1 1)
    (progn
      (load"c:\\程序\\柜子.lsp")
      (cabinet)
    )
  )
  (unload_dialog sdt1)
  (princ)
)




该贴已经同步到 shichenxi的微博
发表于 2011-4-11 22:23:20 | 显示全部楼层
神马玩意?
 楼主| 发表于 2011-4-12 22:21:07 | 显示全部楼层
回复 mandala 的帖子

就是上面一个是对话框,另一个是对话框驱动程序,我知道我驱动程序肯定错了,但是不知道怎么弄?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-10 13:13 , Processed in 0.183171 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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