搜档网
当前位置:搜档网 › config文件内容

config文件内容

config文件内容
config文件内容

!88888888888888888888888888888888888888888888888888888888888

!88 88

!88 燕秀Pro/E Wildfire 3.0 配置文件88

!88 88

!88 https://www.sodocs.net/doc/c418943644.html, 88

!88 燕秀CAD-CAM-CAE-模具综合技术交流论坛88 !88 https://www.sodocs.net/doc/c418943644.html, 88

!88 E-Mail: yanxiucad@https://www.sodocs.net/doc/c418943644.html, 88

!88 赖心秀(YanXiu) 88

!88 2007.8.18 88

!88 88

!88888888888888888888888888888888888888888888888888888888888

!*********************************************************

!* 选项配置*

!*********************************************************

!在收藏中添加指定的文件目录

browser_favorite "d:\TEMP" TEMP

browser_favorite "d:\mold" mold

!启动Pro/ENGINEER时,指定要载入的模型树配置文件

mdl_tree_cfg_file d:\Program Files\proeWildfire 3.0\text\yanxiu.cfg

!为Pro/ENGINEER进程设置缺省的绘图设置文件选项

drawing_setup_file d:\Program Files\proeWildfire 3.0\text\yanxiu.dtl

!指定要从磁盘中载入色彩映射(.map) 文件的目录路径

pro_colormap_path "d:\Program Files\proeWildfire 3.0\text"

!指定创建轨迹文件(trail.txt)的目录路径

trail_dir d:\temp

!指定系统保存regen_backup模型的目录

regen_backup_directory d:\temp

!指定运行非英文版Pro/ENGINEER时,菜单显示的语种

menu_translation both

!运行非英文版Pro/ENGINEER时,指定对话框的显示语种

dialog_translation yes

!指定运行非英文版Pro/ENGINEER时信息显示的语种

msg_translation yes

!指定运行非英文版Pro/ENGINEER时,显示简要帮助信息所用的语言help_translation yes

!为新模型设置缺省的单位系统

pro_unit_sys mmns

!为新对象的质量设置缺省单位

pro_unit_mass unit_gram

!设置新对象的缺省单位

pro_unit_length unit_mm

!指定用作缺省的零件模板的模型

template_solidpart mmns_part_solid_yanxiu.prt

!指定用作缺省的asm组件模板

template_designasm mmns_asm_design_yanxiu.asm

!指定用作缺省的制造模具模板的模型

template_mfgmold mmns_mfg_mold.mfg

!指定用作缺省的钣金件零件模板的模型

template_sheetmetalpart mmns_part_sheetmetal.prt

!指定用作缺省绘图模板的模型

template_drawing a0_drawing.drw

!指定Pro/E浏览器主页的位置

web_browser_homepage https://www.sodocs.net/doc/c418943644.html,

!在Pro/ENGINEER工作时显示时钟

clock yes

!启用为交换数据使用Associative Topology Bus

topobus_enable yes

!加载AutobuildZ 应用程序

autobuildz_enabled no

!指定每次再生之前,系统是否要将当前模型备份到磁盘

regen_backup_using_disk yes

!对于每个Pro/E进程,用户必须设置主服务器/工作空间

dm_remember_server no

!输入存储历史记录的天数

web_browser_history_days 0

!设置"文件">"打开"的缺省目录

file_open_default_folder working_directory

!在窗口标题中显示完整文件名和的文件路径

display_full_object_path yes

!设置文本字体,不包括菜单条、菜单及其子项、弹出式菜单和帮助

default_font 10, arial, bold

!指定Pro/ENGINEER菜单条、菜单和所有其它子项所使用的字体

menu_font 10, arial, bold

!设置Pro/ENGINEER信息区域中缺省的可视信息行数

visible_message_lines 2

!为扩大反向箭头(用于显示特征创建方向) 尺寸设置比例因子(缺省值= 1) flip_arrow_scale 3

!使用旧的基于笔划的PTC字体作为缺省字体

use_pre_wildfire_text_font yes

!当从一个窗口改变至另一个窗口时,自动重画绘图显示

auto_regen_views no

!为使用"无比例"命令增加的视图设置缺省的绘图比例

default_draw_scale 1.0

!将图片文件嵌入绘图内部以用于预览

save_drawing_picture_file embed

!显示的尺寸没有公差。

tol_mode nominal

!输出出图或2-D文件之前,为重复直线和收集相同笔色的直线设置检测数量interface_quality 3

!当从Pro/E绘图中输出时,提供选择DWG文件版本的功能

dwg_export_format 2000

!草绘器保存每个已执行功能的副本

sketcher_undo_stack_limit 100

!缺省是否显示基准轴

display_axes no

!缺省是否显示坐标系

display_coord_sys no

!缺省是否显示基准面

display_planes no

!缺省是否显示基准点及其名称

display_points no

!缺省是否显示旋转中心符号

spin_center_display no

!缺省的曲面显示方式

display shade

!设置信息显示的缺省格式类型

info_output_format text

!设置在所有模型模式中显示非角度尺寸的缺省小数位数(0-14) default_dec_places 4

!设置草绘器中尺寸显示的缺省小数位数

sketcher_dec_places 4

!指定绘图中显示的角度尺寸的小数位数

default_ang_dec_places 2

!计算两个零件或曲面之间的间隙时,设置系统精度显示

clr_print_plus_minus yes

!允许用户在Pro/INTERFACE输入中使用模板模型。

intf_in_use_template_models yes

!输入数据是是否显示输入日志文件

intf3d_show_import_log no

!输入曲面时自动修复部分边界

fix_boundaries_on_import yes

!输出STEP文件时包含颜色外观

step_appearance_layers_groups yes

!在"精度"菜单的显示绝对精度定

enable_absolute_accuracy yes

!输入一个精确值来覆盖缺省下限。相对精度的最小值是1E-06

accuracy_lower_bound 0.000001

!在编辑菜单下显示移除功能(该功能可以直接去除圆角,强烈建议做模具的使用)all_tmp_rmv_srf_feat yes

!*********************************************************

!* mapkey(映射键/快捷键)*

!*********************************************************

! F1 打开文件

mapkey $F1 ~ Activate `main_dlg_cur` `ProCmdModelOpen.file`;\

mapkey(continued) ~ Select `file_open` `Type`1 `db_-1`;

! F2 更改工作目录

mapkey $F2 ~ Activate `main_dlg_cur` `ProCmdSessionChangeDir.file`;\

mapkey(continued) ~ Activate `file_open` `view_favorites`;

! F3 关闭当前文件

mapkey $F3 ~ Activate `main_dlg_cur` `Windows.psh_win_close`;

! F4 拭除未显示的文件

mapkey $F4 ~ Activate `main_dlg_cur` `psh_erase_not_disp`;

! F5 测量长度

mapkey $F5 ~ Activate `main_dlg_cur` `psh_na_measure_length`;

! F6 测量距离

mapkey $F6 ~ Activate `main_dlg_cur` `psh_na_measure_distance`;\

mapkey(continued) ~ Select `na_distance` `page_tab`1 `options`;

! F7 测量角度

mapkey $F7 ~ Activate `main_dlg_cur` `psh_na_measure_angle`;

! F8 测量直径

mapkey $F8 ~ Activate `main_dlg_cur` `psh_na_measure_diameter`;

! F10 更新工程图

mapkey $F10 ~ Activate `main_dlg_cur` `psh_view_regen_cur`;

! ` 重画

mapkey ` ~ Activate `main_dlg_cur` `ProCmdViewRepaint.view`;

! 1 完全显示

mapkey 1 ~ Activate `main_dlg_cur` `ProCmdViewRefit.view`;

! 2 草绘方向平行屏幕

mapkey 2 ~ Activate `main_dlg_cur` `ProCmdViewSketchView.sket`;;

! 3 打开草绘约束

mapkey 3 ~ Activate `main_dlg_cur` `ProCmdSketConstrain.sket_r`1 ;

! 4 过滤器为注释

mapkey 4 ~ Select `main_dlg_cur` `Sst_bar.filter_list`1 `5`;

! 5 过滤器为几何

mapkey 5 ~ Select `main_dlg_cur` `Sst_bar.filter_list`1 `2`;

! 6 过滤器为面组

mapkey 6 ~ Select `main_dlg_cur` `Sst_bar.filter_list`1 `4`;

! 7 过滤器为特征

mapkey 7 ~ Select `main_dlg_cur` `Sst_bar.filter_list`1 `1`;

! 8 过滤器为智能

mapkey 8 ~ Select `main_dlg_cur` `Sst_bar.filter_list`1 `0`;

! Q 实体偏移

mapkey q ~ Activate `main_dlg_cur` `ProCmdFtOffset.b_feat`;\ mapkey(continued) ~ Enter `main_dlg_cur` `dashInst0.gP`;\

mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.gP`0 ;\

mapkey(continued) ~ Exit `main_dlg_cur` `dashInst0.gP`;\

mapkey(continued) ~ Activate `main_dlg_cur` `maindashInst0.offtype_flyout_tb` `3 \ mapkey(continued) offtype_flyout`;~ Activate `main_dlg_cur` `3 offtype_flyout`1;

! WW 实体替换

mapkey ww ~ Activate `main_dlg_cur` `ProCmdFtOffset.b_feat`;\

mapkey(continued) ~ Activate `main_dlg_cur` `maindashInst0.offtype_flyout_tb` `4 \ mapkey(continued) offtype_flyout`;~ Activate `main_dlg_cur` `4 offtype_flyout`1 ;\ mapkey(continued) ~ Select `main_dlg_cur` `maindashInst0.List2`1 ;

! WQ 把实体替换的选项设置为保持替换面组

mapkey wq ~ Activate `main_dlg_cur` `chkbn.option.0`1 ;\

mapkey(continued) ~ Activate `option.1.0` `PH.keep_quilt_chk`1 ;\

mapkey(continued) ~ Activate `main_dlg_cur` `chkbn.option.0`0;

! WE 把实体替换的选项设置为不保持替换面组

mapkey we ~ Activate `main_dlg_cur` `chkbn.option.0`1 ;\

mapkey(continued) ~ Activate `option.1.0` `PH.keep_quilt_chk`0 ;\

mapkey(continued) ~ Activate `main_dlg_cur` `chkbn.option.0`0;

! WF 打开选中的零件

mapkey wf ~ Activate `main_dlg_cur` `OpenModel`;

! E 延伸选中的曲面边到平面

mapkey e ~ Activate `main_dlg_cur` `ProCmdFtExtend.b_feat`;\

mapkey(continued) ~ Select `main_dlg_cur` `maindashInst0.ExtendType`1 `To Plane`;

! R 再生模型

mapkey r #REGENERA TE;#AUTOMA TIC;

! T 打开或关闭模型树

mapkey t ~ Activate `main_dlg_cur` `resizer_button_2`1;

! Y 保存图层及几何隐藏状态

mapkey y ~ Activate `main_dlg_cur` `ActionMenuLayerBlank`;\

mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuSaveStatus`;

! UU 清除所以只读

mapkey uu ~ Activate `main_dlg_cur` `Edit.psh_readonly`;#CLEAN;#DONE/RETURN;

! UY 只读特征

mapkey uy ~ Activate `main_dlg_cur` `Edit.psh_readonly`;

! I8 激活插入模式

mapkey i8 #FEATURE;#CA VITY ASSEM;#FEATURE OPER;#INSERT MODE;#ACTIV ATE;

! I9 取消插入模式

mapkey i9 #FEATURE;#CA VITY ASSEM;#FEATURE OPER;#INSERT MODE;#CANCEL;

! IG 新建一个零件文件然后输入指定igs或stp或neu文件

mapkey ig ~ Activate `main_dlg_cur` `ProCmdModelNew.file`;\

mapkey(continued) ~ Activate `new` `OK`;~ Activate `main_dlg_cur` `pshDataFromFile`;

! IC 外部复制几何

mapkey ic ~ Activate `main_dlg_cur` `pshOduiDsfCopyGeom`;\

mapkey(continued) ~ Activate `main_dlg_cur` `maindashInst0.Open_ref_model`;

! O 曲面自由状态

mapkey o ~ Activate `main_dlg_cur` `pshSurfFreeForm`;

! A 插入投影视图

mapkey A #VIEWS;#DONE;

! S 插入带剖面投影视图

mapkey S #VIEWS;#SECTION;#DONE;#DONE;

! D 插入一般视图

mapkey D #VIEWS;#GENERAL;#DONE;

! HG 增加模型

mapkey hg #VIEWS;#DWG MODELS;#ADD MODEL;

! HH 设定当前模型

mapkey hh #VIEWS;#DWG MODELS;#SET MODEL;

! HJ 设定简化表示

mapkey hj #VIEWS;#DWG MODELS;#SET/ADD REP;

! = 剖面线减少

mapkey = #SPACING;#HALF;

! - 剖面线加密

mapkey - #SPACING;#DOUBLE;

! J 装配零件

mapkey j ~ Activate `main_dlg_cur` `ProCmdCompAssem.d_feat`;

! K 零件按缺省装配

mapkey k ~ Select `main_dlg_cur` `maindashInst0.constr_type_menu`1 \ mapkey(continued) `Default`;~ Activate `main_dlg_cur` `dashInst0.stdbtn_1`;

! P 隐藏选定的几何或零件

mapkey p ~ Activate `main_dlg_cur` `psh_view_hide`;

! L 取消隐藏选定的几何或零件

mapkey l ~ Activate `main_dlg_cur` `UnhideFeat_PushBtn`;

! [ 线框显示选定的零件

mapkey [ ~ Activate `main_dlg_cur` `WireframeBtn`;

! ; 着色显示选定的零件

mapkey ; ~ Activate `main_dlg_cur` `ShadedBtn`;

! ] 屏蔽选定的零件

mapkey ] ~ Activate `main_dlg_cur` `Blank`;

! ' 取消屏蔽选定的零件

mapkey ' ~ Activate `main_dlg_cur` `Unblank`;

! Z 复制粘贴选定的曲面(到完成)

mapkey z ~ Activate `main_dlg_cur` `ProCmdEditCopy.edit_t`;\

mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdEditPaste.edit_t`;\ mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.Done`;

! X 复制粘贴选定的曲面(到复制对话框)

mapkey x ~ Activate `main_dlg_cur` `ProCmdEditCopy.edit_t`;\

mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdEditPaste.edit_t`;

! C 不用选择曲面先进入复制曲面对话框

mapkey c #FEATURE;#CREA TE;#SURFACE;#NEW;#COPY;#DONE;

! V 不用选择曲面先进入曲面合并对话框

mapkey v #FEATURE;#CREATE;#SURFACE;#SURFACE;#MERGE;

! B 编辑定义选定的特征(可以是草绘)

mapkey b ~ Activate `main_dlg_cur` `Edit.pshRedefine`;

! N 修改选定的特征(可以是草绘)

mapkey n ~ Activate `main_dlg_cur` `EditModify`;

! M 将选中的曲面实体化

mapkey m ~ Activate `main_dlg_cur` `ProCmdFtPatch.b_feat`;\

mapkey(continued) ~ Select `main_dlg_cur` `maindashInst0.Option`1 `option_cut`;\

mapkey(continued) ~ Enter `main_dlg_cur` `dashInst0.Quit`;\

mapkey(continued) ~ Exit `main_dlg_cur` `dashInst0.Quit`;\

mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.Done`;

! , 保存当前的元件显示样式为缺省(default)

mapkey , ~ Activate `main_dlg_cur` `ProCmdViewVisTool.view`;\

mapkey(continued) ~ Select `visual_dlg0` `RadioSelApplMgr`1 `display style`;\

mapkey(continued) ~ RButtonArm `visual_dlg0` `Table`2 `master style` `name_column`;\ mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel`1 `Table`;\

mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\ mapkey(continued) ~ Activate `visual_dlg0` `SaveRMB`;~ Open `save_views_dlg` `style_om`;\ mapkey(continued) ~ Trigger `save_views_dlg` `style_om` `Default`;\

mapkey(continued) ~ Close `save_views_dlg` `style_om`;\

mapkey(continued) ~ Select `save_views_dlg` `style_om`1 `Default`;\

mapkey(continued) ~ Trigger `save_views_dlg` `style_om` ``;\

mapkey(continued) ~ FocusOut `save_views_dlg` `style_om`;~ Activate `save_views_dlg` `ok`;\ mapkey(continued) ~ Activate `upddefdbitem` `UpdDefBtn`;~ Activate `visual_dlg0` `CloseBtn`;

! . 设定当前的元件显示样式为缺省(default)

mapkey . ~ Activate `main_dlg_cur` `ProCmdViewVisTool.view`;\

mapkey(continued) ~ Select `visual_dlg0` `RadioSelApplMgr`1 `display style`;\

mapkey(continued) ~ Select `visual_dlg0` `Table`2 `default` `name_column`;\

mapkey(continued) ~ Activate `visual_dlg0` `Table`2 `default` `name_column`;\

mapkey(continued) ~ Activate `visual_dlg0` `CloseBtn`;

! / 设定当前的元件显示样式为主造型(master style)

mapkey / ~ Activate `main_dlg_cur` `ProCmdViewVisTool.view`;\

mapkey(continued) ~ Select `visual_dlg0` `RadioSelApplMgr`1 `display style`;\

mapkey(continued) ~ Select `visual_dlg0` `Table`2 `master style` `name_column`;\

mapkey(continued) ~ Activate `visual_dlg0` `Table`2 `master style` `name_column`;\ mapkey(continued) ~ Activate `visual_dlg0` `CloseBtn`;

! FY 输出DXF文件(会自动清除垃圾文件)

mapkey fy ~ Activate `main_dlg_cur` `ProCmdModelSaveAs.file`;\

mapkey(continued) ~ Select `file_saveas` `type_option`1 `db_137`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `export_2d_dlg` `Mtext_Button`0 ;\ mapkey(continued) ~ Select `export_2d_dlg` `ExportOptions_Tab`1 `Misc_Layout`;\

mapkey(continued) ~ Select `export_2d_dlg` `AssemblyStructure_Group`1 `as_blocks`;\ mapkey(continued) ~ Select `export_2d_dlg` `ExportOptions_Tab`1 `Entities_Layout`;\ mapkey(continued) ~ Activate `export_2d_dlg` `OK_Button`;~ FocusIn `UI Message Dialog` `ok`;\

mapkey(continued) ~ Activate `UI Message Dialog` `ok`;%wd;

! FT 输出STP文件(会自动清除垃圾文件)

mapkey ft ~ Activate `main_dlg_cur` `ProCmdModelSaveAs.file`;\

mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\ mapkey(continued) ~ Select `file_saveas` `type_option`1 `db_539`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `UI Message Dialog` `ok`;\ mapkey(continued) ~ Activate `intf_export` `OkPushBtn`;%wd;

! FI 输出IGS文件(会自动清除垃圾文件)

mapkey fi ~ Activate `main_dlg_cur` `ProCmdModelSaveAs.file`;\

mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\ mapkey(continued) ~ Select `file_saveas` `type_option`1 `db_134`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `UI Message Dialog` `ok`;\ mapkey(continued) ~ Activate `intf_export` `OkPushBtn`;%wd;

! FN 输出NEU文件(会自动清除垃圾文件)

mapkey fn ~ Activate `main_dlg_cur` `ProCmdModelSaveAs.file`;\

mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\ mapkey(continued) ~ Select `file_saveas` `type_option`1 `db_198`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `intf_export` `OkPushBtn`;%wd;

! FL 输出STL文件(会自动清除垃圾文件)

mapkey fl ~ Activate `main_dlg_cur` `ProCmdModelSaveAs.file`;\

mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\ mapkey(continued) ~ Select `file_saveas` `type_option`1 `db_549`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `UI Message Dialog` `ok`;\ mapkey(continued) ~ FocusOut `export_slice` `ChordHeightPanel`;~ Activate `export_slice` `OK`;\

mapkey(continued) %wd;

! FX 输出X_T文件(会自动清除垃圾文件)

mapkey fx ~ Activate `main_dlg_cur` `ProCmdModelSaveAs.file`;\

mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\ mapkey(continued) ~ Select `file_saveas` `type_option`1 `db_837`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ FocusIn `UI Message Dialog` `ok`;\

mapkey(continued) ~ Activate `UI Message Dialog` `ok`;~ Activate `intf_export` `OkPushBtn`;%wd;

! FP 输出JPG文件(会自动清除垃圾文件)

mapkey fp ~ Activate `main_dlg_cur` `ProCmdModelSaveAs.file`;\

mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\ mapkey(continued) ~ Select `file_saveas` `type_option`1 `db_566`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ FocusIn `UI Message Dialog` `ok`;\ mapkey(continued) ~ Activate `UI Message Dialog` `ok`;~ Open `shd_img_param` `o_size`;\ mapkey(continued) ~ Close `shd_img_param` `o_size`;~ Select `shd_img_param` `o_size`1 `A4`;\

mapkey(continued) ~ Open `shd_img_param` `o_dpi`;~ Close `shd_img_param` `o_dpi`;\ mapkey(continued) ~ Select `shd_img_param` `o_dpi`1 `dpi200`;~ Activate `shd_img_param` `OK`;

! UP 清理文件老版本和垃圾文件

mapkey up @SYSTEMpurge;%wd;

! FJ 打开计算器

mapkey fj @MAPKEY_NAMEcalc;@MAPKEY_LABELcalc;@SYSTEMcalc;

! FR 新建零件文件

mapkey fr ~ Activate `main_dlg_cur` `ProCmdModelNew.file`;\

mapkey(continued) ~ Activate `new` `OK`;

! FV 新建组件文件

mapkey fv ~ Activate `main_dlg_cur` `ProCmdModelNew.file`;\

mapkey(continued) ~ Select `new` `Type`1 `Assembly`;~ Activate `new` `OK`;

! FM 新建分模文件

mapkey fm ~ Activate `main_dlg_cur` `ProCmdModelNew.file`;\

mapkey(continued) ~ Select `new` `Type`1 `Manufacturing`;\

mapkey(continued) ~ Select `new` `RadioGroup10`1 `Mold`;~ Activate `new` `OK`;

! F2 新建当前文件的工程图文件

mapkey f2 ~ Activate `main_dlg_cur` `ProCmdModelNew.file`;\

mapkey(continued) ~ Select `new` `Type`1 `Drawing`;\

mapkey(continued) ~ Activate `new` `chk_use_default_template`0 ;~ Activate `new` `OK`;\ mapkey(continued) ~ FocusIn `dwg_create` `inp_model_name`;\

mapkey(continued) ~ Open `dwg_create` `opt_drawing_size`;\

mapkey(continued) ~ Close `dwg_create` `opt_drawing_size`;\

mapkey(continued) ~ Select `dwg_create` `opt_drawing_size`1 `A0`;\

mapkey(continued) ~ Activate `dwg_create` `psh_ok`;

! WD 指定要删除的垃圾文件后缀

mapkey wd @SYSTEMdel *.log.* *.err.* *.inf.* *.lst.* *.crc *.acc *.ger *.ers \ mapkey(continued) *.m_p *.bak *.bk1 *.bk2 std.out current_session.pro;

! FF 打开文件对话框(进程中)

mapkey ff ~ Activate `main_dlg_cur` `ProCmdModelOpen.file`;\

mapkey(continued) ~ Activate `file_open` `In Session`;

! Fe 改文件名(零件)

mapkey fe ~ Activate `main_dlg_cur` `File.psh_rename`;

! F3 改文件名(组件下选择零件)

mapkey f3 ~ Activate `main_dlg_cur` `ProCmdModelRename.file`;\

mapkey(continued) ~ Activate `rename` `Select`;

! GJ设定当前的视图方向为缺省(default)

mapkey gj ~ Activate `main_dlg_cur` `ProCmdViewNamePick.view`1 ;\ mapkey(continued) ~ Select `nameviewlist` `nv_list`1 `Default`;

! GT 设定当前的视图方向为TOP

mapkey gt ~ Activate `main_dlg_cur` `ProCmdViewNamePick.view`1 ;\ mapkey(continued) ~ Select `nameviewlist` `nv_list`1 `TOP`;

! GD 设定当前的视图方向为BOTTOM

mapkey gb ~ Activate `main_dlg_cur` `ProCmdViewNamePick.view`1 ;\ mapkey(continued) ~ Select `nameviewlist` `nv_list`1 `BOTTOM`;

! GR 设定当前的视图方向为RIGHT

mapkey gr ~ Activate `main_dlg_cur` `ProCmdViewNamePick.view`1 ;\ mapkey(continued) ~ Select `nameviewlist` `nv_list`1 `RIGHT`;

! GY 设定当前的视图方向为LEFT

mapkey gy ~ Activate `main_dlg_cur` `ProCmdViewNamePick.view`1 ;\ mapkey(continued) ~ Select `nameviewlist` `nv_list`1 `LEFT`;

! GF 设定当前的视图方向为FRONT

mapkey gf ~ Activate `main_dlg_cur` `ProCmdViewNamePick.view`1 ;\ mapkey(continued) ~ Select `nameviewlist` `nv_list`1 `FRONT`;

! GH 设定当前的视图方向为BACK

mapkey gh ~ Activate `main_dlg_cur` `ProCmdViewNamePick.view`1 ;\

mapkey(continued) ~ Select `nameviewlist` `nv_list`1 `BACK`;

! HT 保存当前方向为视图T

mapkey ht ~ Activate `main_dlg_cur` `ProCmdViewOrient.view`;\

mapkey(continued) @PAUSE_FOR_SCREEN_PICK;@PAUSE_FOR_SCREEN_PICK;\ mapkey(continued) ~ Activate `orient` `NmViewCheckBtn`1 ;\

mapkey(continued) ~ Input `orient` `https://www.sodocs.net/doc/c418943644.html,Vw_IP` `t`;\

mapkey(continued) ~ Update `orient` `https://www.sodocs.net/doc/c418943644.html,Vw_IP` `t`;\

mapkey(continued) ~ Activate `orient` `https://www.sodocs.net/doc/c418943644.html,Vw_PB_Save`;yes;\ mapkey(continued) ~ Activate `orient` `OkPB`;

! HR 保存当前方向为视图3D

mapkey hr ~ Activate `main_dlg_cur` `ProCmdViewOrient.view`;\

mapkey(continued) ~ Activate `orient` `NmViewCheckBtn`1 ;\

mapkey(continued) ~ Input `orient` `https://www.sodocs.net/doc/c418943644.html,Vw_IP` `3`;\

mapkey(continued) ~ Input `orient` `https://www.sodocs.net/doc/c418943644.html,Vw_IP` `3D`;\

mapkey(continued) ~ Update `orient` `https://www.sodocs.net/doc/c418943644.html,Vw_IP` `3D`;\

mapkey(continued) ~ Activate `orient` `https://www.sodocs.net/doc/c418943644.html,Vw_PB_Save`;yes;\ mapkey(continued) ~ Activate `orient` `OkPB`;

! G4 设定当前背景颜色为2001颜色

mapkey g4 ~ Activate `main_dlg_cur` `psh_util_colors_sys`;\

mapkey(continued) ~ Activate `color_scheme` `UsePreWFColScheme`1 ;\

mapkey(continued) ~ Activate `color_scheme` `OK`;

! G5 设定当前背景颜色为野火颜色

mapkey g5 ~ Activate `main_dlg_cur` `psh_util_colors_sys`;\

mapkey(continued) ~ Activate `color_scheme` `Reset`;~ Activate `color_scheme` `OK`;

! G6 设定当前背景颜色为白色

mapkey g6 ~ Activate `main_dlg_cur` `psh_util_colors_sys`;\

mapkey(continued) ~ Activate `color_scheme` `Scheme2`;~ Activate `color_scheme` `OK`;

! G7 设定当前背景颜色为黑色

mapkey g7 ~ Activate `main_dlg_cur` `psh_util_colors_sys`;\

mapkey(continued) ~ Activate `color_scheme` `Scheme3`;~ Activate `color_scheme` `OK`;

! GQ 打印当前的窗口

mapkey gq ~ Activate `main_dlg_cur` `File.psh_print`;~ Activate `print` `OK`;

! GA 设定当前的文件的绝对精度为选定文件

mapkey ga ~ Activate `main_dlg_cur` `Edit.pshSetup`;#ACCURACY;;#ABSOLUTE;\ mapkey(continued) #SELECT MODEL;

! GS 设定缩水

mapkey gs ~ Activate `main_dlg_cur` `Edit.pshSetup`;#SHRINKAGE;#BY SCALING;\ mapkey(continued) ~ Activate `Odui_Dlg_00` `1.PushButton1.Global_Lay`;

! GP 模具拔模分析

mapkey gp ~ Activate `main_dlg_cur` `psh_na_geometry_draft_check`;\

mapkey(continued) ~ Select `na_draft_check` `page_tab`1 `options`;\

mapkey(continued) ~ Trigger `na_draft_check` `surface_rep_` `0`;\

mapkey(continued) ~ Trigger `na_draft_check` `surface_rep_` ``;\

mapkey(continued) ~ Trigger `na_draft_check` `surface_rep_` ``;\

mapkey(continued) ~ Trigger `na_draft_check` `pull_rep_` `0`;\

mapkey(continued) ~ Trigger `na_draft_check` `pull_rep_` ``;\

mapkey(continued) ~ Select `na_draft_check` `draft_direction_rg`1 `both`;\

mapkey(continued) ~ Input `na_draft_check` `draft_angle_txt` `0`;\

mapkey(continued) ~ Input `na_draft_check` `draft_angle_txt` `0.`;\

mapkey(continued) ~ Input `na_draft_check` `draft_angle_txt` `0.0`;\

mapkey(continued) ~ Input `na_draft_check` `draft_angle_txt` `0.01`;\

mapkey(continued) ~ Update `na_draft_check` `draft_angle_txt` `0.01`;\

mapkey(continued) ~ FocusOut `na_draft_check` `draft_angle_txt`;\

mapkey(continued) ~ Open `main_dlg_cur` `Sst_bar.filter_list`;\

mapkey(continued) ~ Close `main_dlg_cur` `Sst_bar.filter_list`;\

mapkey(continued) ~ Select `main_dlg_cur` `Sst_bar.filter_list`1 `4`;\

mapkey(continued) ~ Trigger `na_draft_check` `pull_rep_` `0`;\

mapkey(continued) ~ Trigger `na_draft_check` `pull_rep_` ``;\

mapkey(continued) ~ Trigger `na_draft_check` `surface_rep_` `0`;\

mapkey(continued) ~ FocusOut `na_draft_check` `draft_angle_txt`;\

mapkey(continued) ~ Select `na_draft_check` `surface_rep_`1 `0`;\

mapkey(continued) ~ Trigger `na_draft_check` `surface_rep_` ``;

! W1 从模具体积块分割出另一个体积块

mapkey w1 ~ Activate `main_dlg_cur` `ProCmdMoldMfgTbrSplit.moldmf`;\

mapkey(continued) #ONE VOLUME;#MOLD VOLUME;#DONE;

! W2 把工件分割为两个体积块

mapkey w2 ~ Activate `main_dlg_cur` `ProCmdMoldMfgTbrSplit.moldmf`;#DONE;

! W3 连接体积块

mapkey w3 ~ Activate `main_dlg_cur` `Edit.pshMoldVolAttach`;

! W4 抽取全部体积块为零件(有基准面)

mapkey w4 ~ Activate `main_dlg_cur` `ProCmdMoldMfgTbrInserts.moldmf`;\

mapkey(continued) ~ Activate `mold_extract` `SelAllButton2`;\

mapkey(continued) ~ Activate `mold_extract` `TabSwitchButton`1 ;\

mapkey(continued) ~ Activate `mold_extract` `SelAllButton`;\

mapkey(continued) ~ Activate `mold_extract` `FileOpenButton`;\

mapkey(continued) ~ Activate `file_open` `view_favorites`;\

mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `templates`;\

mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist`1 `templates`;\

mapkey(continued) ~ Select `file_open` `Ph_list.Filelist`1 `mmns_part_solid_yanxiu.prt`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist`1 `mmns_part_solid_yanxiu.prt`;\ mapkey(continued) ~ Activate `mold_extract` `OkButton`;

! W` 用点做坐标系(要选择两次坐标系来确定方向)

mapkey w` ~ Activate `main_dlg_cur` `ProCmdDatumCsys.datum`;\

mapkey(continued) ~ Trigger `Odui_Dlg_00` `t1.OriginPlacement`2 `` ``;\

mapkey(continued) ~ Trigger `Odui_Dlg_00` `t1.OriginPlacement`2 `collector_preview_row_0` \

mapkey(continued) `constr`;~ Trigger `Odui_Dlg_00` `t1.OriginPlacement`2 `` ``;\

mapkey(continued) ~ Select `Odui_Dlg_00` `pg_vis_tab`1 `tab_2`;\

mapkey(continued) ~ Trigger `Odui_Dlg_00` `t2.DirectionTable1`2 `` ``;\

mapkey(continued) ~ FocusIn `Odui_Dlg_00` `t2.DirectionTable1`;\

mapkey(continued) ~ Trigger `Odui_Dlg_00` `t2.DirectionTable1`2 `` ``;@PAUSE_FOR_SCREEN_PICK;\

mapkey(continued) ~ Trigger `Odui_Dlg_00` `t2.DirectionTable2`2 `` ``;\

mapkey(continued) ~ Trigger `Odui_Dlg_00` `t2.DirectionTable2`2 `` ``;\

mapkey(continued) ~ Open `Odui_Dlg_00` `t2.CsysMenu1`;~ Close `Odui_Dlg_00` `t2.CsysMenu1`;\

mapkey(continued) ~ Select `Odui_Dlg_00` `t2.CsysMenu1`1 `Axis_X`;\

mapkey(continued) ~ Trigger `Odui_Dlg_00` `t2.DirectionTable2`2 `` ``;@PAUSE_FOR_SCREEN_PICK;\

mapkey(continued) ~ Open `Odui_Dlg_00` `t2.CsysMenu2`;~ Close `Odui_Dlg_00` `t2.CsysMenu2`;\

mapkey(continued) ~ Select `Odui_Dlg_00` `t2.CsysMenu2`1 `Axis_Y`;\

mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;

! F9 手动->间隙->自动选取->缝合然后转到(编辑边界)的选择要编辑的曲面

mapkey $F9 #MANUAL;#ZIP GAPS;#AUTO SELECT;#ZIP GAPS;#ACCEPT;#MANUAL;\ mapkey(continued) #EDIT BNDRY;

! 9 手动->间隙->手动选取链

mapkey 9 #MANUAL;#ZIP GAPS;#SEL CHAIN;

! 0 间隙->接受

mapkey 0 #ZIP GAPS;#ACCEPT;

! IK 编辑边界

mapkey ik #MANUAL;#EDIT BNDRY;

! IL 选取围线->选取全部

mapkey il #SEL CONTOUR;#SELECT ALL;

! IP 投影边

mapkey ip #CREATE;#PROJECT;

! IY 合并边

mapkey iy #MODIFY;#MERGE EDGES;

! IU 移动顶点

mapkey iu #MODIFY;#MOVE VERTEX;

! IT 分割边

mapkey it #MODIFY;#DIVIDE;

! IO 组合

mapkey io #COMBINE;

! II 删除

mapkey ii #DELETE;

! I; 组合->完成

mapkey i; #COMBINE;#DONE;#SEL SURFACE;

mapkey \xd @MAPKEY_NAME特征再生失败->删除出错特征;#QUICK FIX;#DELETE;#DELETE ALL;#YES;

mapkey \xr @MAPKEY_NAME特征再生失败->重定义出错特征;#QUICK FIX;#REDEFINE;#CONFIRM;#SUSPEND ALL;

mapkey \xu @MAPKEY_NAME特征再生失败->撤销更改;#UNDO CHANGES;#CONFIRM; mapkey \xf @MAPKEY_NAME特征再生失败->选取特征重定义;#FIX MODEL;#FEATURE;#REDEFINE;

mapkey \xg @MAPKEY_NAME特征再生失败->查看失败几何特征;#INVESTIGATE;#FAILED GEOM;

mapkey \sp @MAPKEY_NAME经过点创建线;~ Activate `main_dlg_cur`

`ProCmdDatumCurve.datum`;#DONE;

mapkey \su @MAPKEY_NAME使用先前的草绘平面草绘;~ Activate `main_dlg_cur` `ProCmdDatumSketCurve.datum`;\

mapkey(continued) ~ Activate `Odui_Dlg_00` `https://www.sodocs.net/doc/c418943644.html,ePrevPlnB`;\

mapkey(continued) ~ Trigger `Odui_Dlg_00` `t1.RefMru`2 `` ``;\

mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;

mapkey \sf @MAPKEY_NAME把选中的实体化特征反方向;~ Activate `main_dlg_cur` `Redefine`;\

mapkey(continued) ~ Activate `main_dlg_cur` `maindashInst0.Direction`;\

mapkey(continued) ~ Enter `main_dlg_cur` `dashInst0.fP`;~ Exit `main_dlg_cur` `dashInst0.fP`;\ mapkey(continued) ~ Activate `main_dlg_cur` `maindashInst0.material_om_pb`;\

mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.Done`;

mapkey \sc @MAPKEY_NAME增加草绘参照;~ Activate `main_dlg_cur` `Sketch.pshReferences`;

mapkey \se @MAPKEY_NAME新对象替换老对象;~ Activate `main_dlg_cur` `Edit.pshReplace`;

mapkey \a3 @MAPKEY_NAME把不对的剖面线反方向;~ Activate `rmb_popup` `DwgPopupFlipMaterialRemovalSide`;\

mapkey(continued) ~ Activate `rmb_popup` `DwgPopupFlipMaterialRemovalSide`;\

mapkey(continued) ~ Activate `rmb_popup` `DwgPopupEditProperties`;

!*********************************************************

!* end *

!*********************************************************

wmi文档

问题1:WMI 是什么,它能帮我做什么? Windows 管理规范(Windows Management Instrumentation)是一项核心的Windows 管理技术;用户可以使用WMI 管理本地和远程计算机。WMI 通过编程和脚本语言为日常管理提供了一条连续一致的途径。例如,用户可以: ?在远程计算机器上启动一个进程。 ?设定一个在特定日期和时间运行的进程。 ?远程启动计算机。 ?获得本地或远程计算机的已安装程序列表。 ?查询本地或远程计算机的Windows 事件日志。 WMI 中的“Instrumentation”特指WMI 可以获得关于计算机内部状态的信息,这与汽车仪表盘获得并显示引擎的状态信息非常类似。WMI 对磁盘、进程、和其他Windows 系统对象进行建模,从而实现“指示”功能。这些计算机系统对象采用类来建立模型,例如Win32_LogicalDisk 或Win32_Process;如您所料,Win32_LogicalDisk 类用于建立在计算机上安装的逻辑磁盘的模型,Win32_Process 类用于建立正在计算机上运行的任何进程的模型。这些类基于一个名为通用信息模型(Common Information Model,CIM)的可扩展架构。CIM 架构是分布式管理任务组(Distributed Management Task Force)的一个公开标准( https://www.sodocs.net/doc/c418943644.html,). WMI 的功能还包括事件触发、远程调用、查询、查看、架构的用户扩展、指示等等。 想进一步了解WMI,请访问https://www.sodocs.net/doc/c418943644.html,/library/default.asp并搜索关键词“About WMI”。 返回页首 问题2:WMI 适用于那些平台? WMI 适用于所有最新版本的Windows。WMI 附带在Windows Me、Windows 2000、Windows XP 和Windows Server 2003 之中。 对于Windows 98 和Windows NT 4.0,可以访问https://www.sodocs.net/doc/c418943644.html,/downloads. 并搜索“Windows Management Instrumentation (WMI) CORE 1.5 (Windows 95/98/NT 4.0)”。 注意:在Windows NT 4.0 上安装并运行WMI 之前,需要首先安装Service Pack 4 或更高版本。 WMI 需要的其他软件包括: 1. Microsoft? Internet Explorer 5.0 或更高版本。 2. Windows Script Host(WSH)。Windows 2000、Windows XP、Windows Server 2003、和Windows Me 附 带的WSH,而不是Windows NT4 或Windows 98 附带的WSH。您可以从以下地址下载WSH https://www.sodocs.net/doc/c418943644.html,/downloads. WSH 的最新版本——包括在Windows XP 和Windows Server 2003 之中——是WSH 5.6。 返回页首 问题3:如果WMI 向外界暴露特定的功能,我如何才能知道? MSDN 是了解WMI 及其功能的详细参考信息的最佳场所;请参考以下地址获取WMI 参考信息:https://www.sodocs.net/doc/c418943644.html,/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_reference.asp. WMI 参考中包含了关于WMI 标准安装中大多数类、对象和API 的信息。注意:不属于操作系统一部分的WMI 提

Web.config常用配置说明

web.config文件是一个XML文件,它的根结点是,在 节点下的常见子节点有:。其中 节点主要用于配置一些网站的应用配置信息,而 节点主要用于配置网站的数据库连接字符串信息。 节点主要是网站运行时的一些配置,它的常见节点有如下: Web.config常用配置 节点 节点主要用来存储https://www.sodocs.net/doc/c418943644.html,应用程序的一些配置信息,系统常用的一些全局变量,如上传文件的保存路径等。 对于节点中的值可以按照key来进行访问,以下就是一个读取key值 为“FileType”节点值的例子: string fileType=ConfigurationManager.AppSettings["FileType "]; 节点 设置https://www.sodocs.net/doc/c418943644.html,身份验证模式,有四种身份验证模式,它们的值分别如下: Mode 说明Windows 使用Windows身份验证,适用于域用户或者局域网用户。 Forms 使用表单验证,依靠网站开发人员进行身份验证。 Passport 使用微软提供的身份验证服务进行身份验证。 None 不进行任何身份验证。 节点 节点控制用户对网站、目录或者单独页的访问,必须配合节点一起使用。 节点 节点主要用于配置数据库连接的,我们可以 节点中增加任意个节点来保存数据库连接字符串,

Proe-Config文件完整说明

Proe Config全部配置文件說明(完整版) 关于配置文件选项 为配置文件输入所需的设置,可以预设环境选项和其它全局设置。要设置配置文件选项,使用「选项」对话框(「实用工具」>「选项」)。 本帮助模块含有一个按字母顺序显示每一选项或相关选项组的配置选项列表: ?配置选项名称。 ?相关变量或值。选项的缺省值显示为斜体。 ?简单说明。 accuracy_lower_bound 数值(在1.0e-6和1.0e-4之间) 输入一个精确值来覆盖缺省下限0.0001。上限固定为0.01 add_java_class_path <搜索路径> 此选项涉及到有关JAVA环境变量CLASSPATH的选项值,它用于查找J-Link程序中使用的类。可在同一行上指定多个搜索路径,在UNIX中用「:」隔开,在Windows NT中用「;」隔开。设定此选项后,激活第一个J-Link应用程序时才会生效 add_weld_mp yes, no yes - 系统在计算质量属性时,包括焊接。 no - 系统在计算质量属性时,排除焊缝。 allow_anatomic_features yes, no 将此配置文件现象设置为yes,使得下列选项可用: 「扭曲」菜单中:「局部拉伸」、「半径圆顶」、「截面圆盖」、「耳」、「唇」。「实体」菜单中:「开槽」、「轴肩」、「凸缘」、「退刀槽」。 「基准」菜单中:「计算」。 allow_cycle_optimize yes, no 在18.0以前的版本中,有一个孔加工序列参数,允许用户优化孔加工序列CL-数据的循环输出。自版本18.0以来,该参数不再有效。 yes - 使该参数在序列中可见 no - 该参数在序列中不可见 allow_move_attach_in_dtl_move yes, no 确定绘图模式中的「移动」和「移动附属」命令是(yes) 否(no) 一起执行

利用wmic对Windows主机批量执行脚本

利用wmic对Windows主机批量执行脚本 2014年11月13日 AM 10:53 与类Unix操作系统相比较,Windows系统由于对字符界面的支持不完善,并没有与类Unix系统的shell可以相提并论的工具(cmd的命令行特性难用程度与 shell相比简直令人发指,虽然目前Windows推出所谓的PowerShell,但要跟上bash、korn shell等前辈还需要时间来沉淀)。一直以来,对于Windows进行批量管理大多依靠于图形界面,效率低下且可靠性不足。 其实Windows本身提供了WMI管理规范和接口,专用于支持命令行方式的系统管理,更推出wmic工具来给系统管理员使用,以下是百度百科对于wmic的介绍:WMIC扩展WMI(Windows Management Instrumentation,Windows管理规范),提供了从命令行接口和批命令脚本执行系统管理的支持。在WMIC出现之前,如果要管理WMI系统,必须使用一些专门的WMI应用,例如SMS,或者使用WMI的脚本编程API,或者使用象CIM Studio之类的工具。如果不熟悉C++之类的编程语言或VBScript之类的脚本语言,或者不掌握WMI名称空间的基本知识,要用WMI管理系统是很困难的。WMIC改变了这种情况,为WMI名称空间提供了一个强大的、友好的命令行接口。 概念的介绍总是容易让读者云里雾里,以下试验将演示如何使用wmic以及Windows共享功能来对批量服务器执行一个离线安全扫描脚本并取回结果。 试验背景: 现需要对批量Windows Server服务器进行离线安全扫描,即登录到每一台服务器执行一个vbs脚本,脚本会生成扫描结果文件,然后将结果文件下载到本地。倘若服务器数量不多,那么一台台登录执行也就罢了,但当目标服务器数量达到一定数量后,再手工进行此操作,就成为一件繁琐重复的工作。有人说,懒惰是推动人类文明不断进步的源动力。所以为了偷懒,不,为了人类文明的进步,这个工作必须使用批量和自动化的工具来完成。 实现思路: 将此工作分解为以下步骤,逐一实现: 1、登录Windows Server服务器; 2、上传扫描脚本到目标服务器; 3、执行扫描脚本; 4、下载结果文件; 5、对其他服务器重复前4个步骤。 第1步的登录服务器,传统来说,肯定是使用远程桌面了,但如前面所说,图形界面的东西,要进行批量操作是很麻烦的。那自然要使用字符界面来进行登录了,再自然地想到telnet方式是最简便通用的协议。但现今所有负责任的系统或安全管理人员都会告诉你,想用telnet来连接我的服务器?门都没有!幸好wmic就提供了远程主机的管理接口,使用"wmic /node:IP地址 /user:帐号 /password:密码"的形式可以登录到远程主机执行wmic命令。第3步的执行脚本,其实与登录是同时进行的,此处结合第1、第3步,命令就是: wmic /node:IP地址 /user:帐号 /password:密码 process call create "cmd /c cmd命令或脚本" 第2和第4步,上传与下载,其实是同样的需求,如果开通了ftp之类的文件传输服务,自然简单。但当前环境并未开通ftp,所以考虑使用Windows的文件夹共享与网络映射来实现。首先在远端服务器使用wmic创建一个路径为c:\tempshare的共享目录,然后将其映射到本地的Z盘,再直接在Z盘上进行文件的读取。

解决在Web.config或App.config中添加自定义配置的方法详解

解决在Web.config或App.config中添加自定义配置的方法详解 本篇文章是对在Web.config或App.config中添加自定义配置的方法进行了详细的分析介绍,需要的朋友参考下 .Net中的System.Configuration命名空间为我们在web.config或者app.config中自定义配置提供了完美的支持。最近看到一些项目中还在自定义xml文件做程序的配置,所以忍不住写一篇用系统自定义配置的随笔了。 如果你已经对自定义配置了如指掌,请忽略这篇文章。 言归正传,我们先来看一个最简单的自定义配置

在配置文件中使用自定义配置,需要在configSections中添加一个section元素,并制定此section元素对应的类型和名字。然后再在configuration根节点下面添加此自定义配置,如上例中的simple节点。simple节点只有两个整形数的属性maxValue和minValue。 要在程序中使用自定义配置我们还需要实现存取这个配置块的类型,一般需要做如下三件事: 1. 定义类型从System.Configuration.ConfigurationSection继承 2. 定义配置类的属性,这些属性需要用ConfigurationProperty特性修饰,并制定属性在配置节中的名称和其他一些限制信息 3. 通过基类的string索引器实现属性的get ,set 非常简单和自然,如下是上面配置类的实现: public class SimpleSection:System.Configuration.ConfigurationSection { [ConfigurationProperty("maxValue",IsRequired=false,DefaultValue=Int32.MaxValue)] public int MaxValue { get { return(int)base["maxValue"]; } set { base["maxValue"] = value; }

proe中config文件设置及保存

以下代码是我的config.pro文件设置,以及映射键设置,仅供参考,个人可根据自己的喜好设置。新建记事本文件,复制保存为config.pro放在启动目录下即可。当你修改了config.pro文件时,记得一定要保存在proe启动目录下,而不要保存在工作目录下,否则,下次Proe启动时,该修改不会生效 ------------------以下是我的config设置 !跟踪文件路径 trail_dir E:\TerryKong\run-proe\trail !模板路径 format_setup_file E:\TerryKong\run-proe\template format\ pro_format_dir E:\TerryKong\run-proe\template format\incase !材料搜索路径 search_path E:\TerryKong\run-proe\materials pro_material_dir E:\TerryKong\run-proe\materials !系统颜色文件配置 system_colors_file E:\TerryKong\run-proe\syscol.scl !轴线,平面,点默认隐藏 display_axes no display_coord_sys no display_coord_sys_tags no display_points no !工程图文件配置 drawing_setup_file E:\TerryKong\run-proe\cns_ISO.dtl intf_out_layer part_layer lang_propagate yes !修改单位设置 pro_unit_length unit_mm pro_unit_mass unit_kilogram template_designasm mmns_asm_design.asm template_esrasm mmns_asm_esr.asm template_mfgcast mmns_mfg_cast.mfg template_mfgcmm mmns_mfg_cmm.mfg template_mfgemo mmns_mfg_emo.mfg template_mfgmold mmns_mfg_mold.mfg template_mfgnc mmns_mfg_nc.mfg template_mold_layout mmns_mold_lay.asm template_sheetmetalpart mmns_part_sheetmetal.prt template_solidpart mmns_part_solid.prt

用 wmic 从命令行加入域的问题

用wmic 从命令行加入域的问题 用wmic 从命令行加入域的问题 -------------------------------------------------------------------------------- Silence2007-04-07, 23:03:29 在XP 下,用WMIC 命令可以实现将计算机加入域或工作组。WMIC 的功能非常丰富,下面是与域有关的部分内容。 1. 加入域 wmic computersystem where Name="%COMPUTERNAME%" call JoinDomainOrWorkgroup Name="d https://www.sodocs.net/doc/c418943644.html," username="https://www.sodocs.net/doc/c418943644.html,\username" password="password" FJoinOptions=1 注: %COMPUTERNAME% 系统环境变量,内容是计算机名。 FJoinOptions=1 表示首次加入域,若不指定username 和password,则表示加入/修改工作组。FJoinOptions=32 表示允许加入一个新域,即使该计算机已经加入到了某个域。 2、退出域 wmic computersystem where Name="%COMPUTERNAME%" call UnJoinDomainOrWorkgroup userna me="https://www.sodocs.net/doc/c418943644.html,\username" password="password" 命令运行后会显示一个返回值,若值为零则表示成功。 我有上千台微机需要加入域,所以希望来个快捷的办法。这些天进行了多次试验,发现退出域命令1 00% 测试有效,而加入域命令却经常不成功,而且我一直没有发现什么规律。百思不得其解,特来论坛讨教。 测试环境:2000 Server + XP Pro SP2 -------------------------------------------------------------------------------- asap2007-04-08, 06:50:21 将FJoinOptions=3试试。2表示在server端创建computer account。没有试过Windows 2000 Server 下的自动加入;以前也是写的vbscript脚本这样作的;看MSDN上说这个的要求是这样的: Client Requires Windows Vista or Windows XP. Server Requires Windows Server "Longhorn" or Windows Server 2003. 也许这个就是问题所在?手动加入domain时,如果不成功时,也是需要在DC上建立computer账号的。 good luck! -------------------------------------------------------------------------------- G992007-04-08, 07:45:32 学习一下哈

通用的webconfig配置