明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5503|回复: 6

acad.dce 是个什么文件呢?

[复制链接]
发表于 2006-11-27 21:16:00 | 显示全部楼层 |阅读模式
在练习编对话框程序的时候 ,出现提示详情请查看ACAD。DCE文件 不知道是怎么回事?这个文件在那里?请那位大侠给于说明!谢谢
发表于 2006-11-28 14:09:00 | 显示全部楼层

该文件是ACAD调入对话框时,对话框出错后自动建立的,应当在ACAD的当前默认目录下。

出现该文件的前题是,对话框文件首行是:

dcl_settings : default_dcl_settings { audit_level = 3; }

 楼主| 发表于 2006-11-28 18:49:00 | 显示全部楼层

是下面一个 小程序 预览的时候出现的!程序提示语意错误。程序本身并不重要,我想问的是有没有什么比较好的学习DCL语言的资料 书籍? 谢谢

 

main_dlg:dialog{
label=
"确定螺钉种类:"    ;
:row{
:boxed_column{label=
"选择螺钉种类:"   ;
:row{
:image_button{
color=-2    ;
width=15    ;
aspect_ratio=0.66   ;
key=
"screw_0"    ;
}
:image_button{
color=-2    ;
width=15    ;
aspect_ratio=0.66   ;
key=
"screw_1"    ;
}
}
:row{
:image_button{
color=-2    ;
width=15;
aspect_ratio=0.66;
key="screw_2";
}
:image_button{
color=-2    ;
width=15;
aspect_ratio=0.66;
key="screw_3";
}
}}
:list_box{label=
"螺钉种类"    ;
list=
"GB/T65-2000\nGB/T68-2000\nGB/T5780-2000\nGB/T70.1-2000" ;
key=
"s_type"    ;
width=15    ;
fixed_width=true   ;}
}
:row{
spacer_1    ;
:button{label=
"继续"     ;
key=
"accept"    ;
is_default=true    ;
fixed_width=true   ;}
:button{label=
"退出"     ;
key=
"cancel"    ;
fixed_width=true   ;}
spacer_1    ;
}
}


children_dlg:dialog{
 label="确定螺钉参数";
 :row{
     :image{color = -2;
      width=22;
      aspect_ratio=0.6;
      key="id_img";
     }
     :list_box{label ="螺钉大径&D";
       key="s_d";
       edit_width=5;
       height=8;
       list ="M1.6\nM2\nM2.5\nM3\nM4\nM5\nM6\nM8\nM10\nM12\nM14\nM16\nM20";
       fixed_height=true;
              }
     :list_box{label ="螺钉大径&L";
       key="s_l";
       edit_width=5;
       height=8;
       list ="2\n2.5\n3\n4\n5\n6\n8\n10\n12\n14\n16\n20\n25\n30\n35\n40\n45\n50\n";
       fixed_height=true;
              }
     }
 :row{
    :column{
       :boxed_column{label="定位点";
         :edit_box{label="定位点&x坐标:";
              key="p_x";
              edit_width=8;
              value="150";}
         :edit_box{label="定位点&y坐标:";
              key="p_y";
              edit_width=8;
              value="100";}
         :button{label="光标拾取<";
              key="p_p"; } }
       :boxed_column{label="旋转角";
           :edit_box{label="&angle:";
              key="alf";
              edit_width=8;
              value="0";}
    ok_cancel;
} //第一列结束
:column{
  :boxed_column{
     :toggle{label="自定义尺寸";
            key="user_dim";
            value="0";}
     :edit_box{label="自定义大径&d:";
            key="user_d";
            edit_width=8;
            value="10";}
     :edit_box{label="自定义长度&l:";
            key="user_l";
            edit_width=8;
            value="50";}
  :boxed_column{ //第二个加框列,该列有一个切换开关和三个行
     :toggle{label="绘制中心线";
             key="cenline";
             value=1;}
     :row{
      :text{value="细实线颜色:";
      :image_button{color=4;
                    height=2;
                    key="tcolor";
                    }
           }
         }
     :row{
      :text{value="粗实线颜色:";
      :image_button{color=5;
                    height=2;
                    key="scolor";
                    }
            }
         }
              }
       }
     } 
  }
  }
  }//子对话框children_dlg结束
    

发表于 2006-11-29 11:08:00 | 显示全部楼层
其实就是花括弧的位置有问题。下面是改过的子对话框。
  1. children_dlg:dialog{
  2. label="确定螺钉参数";
  3. :row{
  4.   :image{color=-2;width=22;aspect_ratio=0.6;key="id_img";}
  5.   :list_box{
  6.    label="螺钉大径&D";
  7.    key="s_d";
  8.    edit_width=5;
  9.    height=8;
  10.    list ="M1.6\nM2\nM2.5\nM3\nM4\nM5\nM6\nM8\nM10\nM12\nM14\nM16\nM20";
  11.    fixed_height=true;
  12.   }
  13.   :list_box{
  14.    label ="螺钉大径&L";
  15.    key="s_l";
  16.    edit_width=5;
  17.    height=8;
  18.    list ="2\n2.5\n3\n4\n5\n6\n8\n10\n12\n14\n16\n20\n25\n30\n35\n40\n45\n50\n";
  19.    fixed_height=true;
  20.   }
  21. }
  22. :row{
  23.   :column{
  24.    :boxed_column{label="定位点";
  25.     :edit_box{label="定位点&x坐标:";key="p_x";edit_width=8;value="150";}
  26.     :edit_box{label="定位点&y坐标:";key="p_y";edit_width=8;value="100";}
  27.     :button{label="光标拾取<";key="p_p";}
  28.    }
  29.    :boxed_column{
  30.     label="旋转角";
  31.     :edit_box{label="&angle:";key="alf";edit_width=8;value="0";}
  32.     ok_cancel;
  33.    }
  34.   } //第一列结束
  35.   :boxed_column{
  36.    :toggle{label="自定义尺寸";key="user_dim";value="0";}
  37.    :edit_box{label="自定义大径&d:";key="user_d";edit_width=8;value="10";}
  38.    :edit_box{label="自定义长度&l:";key="user_l";edit_width=8;value="50";}
  39.    :boxed_column{ //第二个加框列,该列有一个切换开关和三个行
  40.     :toggle{label="绘制中心线";key="cenline";value=1;}
  41.     :row{
  42.      :text{value="细实线颜色:";}
  43.      :image_button{color=4;height=2;key="tcolor";}
  44.     }
  45.     :row{
  46.      :text{value="粗实线颜色:";}
  47.      :image_button{color=5;height=2;key="scolor";}
  48.     }
  49.    }
  50.   }
  51. }  
  52. }//子对话框children_dlg结束
发表于 2007-1-8 15:38:00 | 显示全部楼层
出现这个提示说明DCL有问题,dce文件中指出的错误相关代码.在当前的目录中.
发表于 2007-2-8 16:34:00 | 显示全部楼层
ZZXXQQ发表于2006-11-28 14:09:00该文件是ACAD调入对话框时,对话框出错后自动建立的,应当在ACAD的当前默认目录下。出现该文件的前题是,对话框文件首行是:dcl_settings : default_dcl_settings { audit_level = 3; }

一定要加入这些当DCL出错后才会产生DCE文件吗?

发表于 2018-3-25 16:30:18 | 显示全部楼层
我用的飞诗编辑器,错误文件会出现在飞诗编辑器的安装目录里面。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-19 19:52 , Processed in 0.176372 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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