ANSYS添加toolbar的方法.doc_第1页
ANSYS添加toolbar的方法.doc_第2页
ANSYS添加toolbar的方法.doc_第3页
ANSYS添加toolbar的方法.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

ANSYS添加toolbar的方法 1. 创建命令abbr*ABBR命令或者GUI操作Utility Menu Macro Edit Abbreviations or Utility Menu MenuCtrls Edit ToolbarAbbrThe abbreviation name that will appear on the toolbar button. The name can contain up to eight characters.StringThe String argument is the name of the macro or command that Abbr represents. If String is the name of a macro, the macro must be within the macro search path. For more information about using macros, see APDL as a Macro Language. If deStringde references an ANSYS picking menu or dialog box (using UIDL), then specify Fnc_string. For example, in the abbreviation definitions for QUIT and POWRGRPH shown above, Fnc_/QUIT and Fnc_/GRAPHICS are unique UIDL function names which identify the ANSYS picking menu or dialog box associated with the QUIT and POWRGRPH abbreviations respectively. For more information about accessing UIDL functions, see Calling Dialog Boxes From a Macro. deStringde can contain up to 60 characters but cannot include any of the following:The character $The commands C*, /COM, /GOPR, /NOPR, /QUIT, /UI, or *END下面为创建Abbr的实例/NOPR*ABB,SAVE_DB ,SAVE*ABB,RESUM_DB,RESUME*ABB,QUIT,Fnc_/EXIT*ABB,POWRGRPH,Fnc_/GRAPHICS*ABBR, REPLOT_DB, REPLOT !Automatically reissues the last display command for convenience. *ABBR, ALLSEL, ALLSEL !Selects all entities with a single command.*ABBR, ETABLE_REFL, ETABLE,REFL !更新单元表数据 *ABB,DEDATE,/PLOPTS,DATE,0 !调用一句话命令/PLOPTS,DATE,0 *ABBR,PREP_ABR,ABBRES,aaa,ABBR !调用嵌套toolbar,即调用ABBRES,aaa,ABBR *ABBR,Modal,Modal_analysis !调用宏,文件名Modal_analysis,文件后缀为mac/GO 2. 保存和读取abbrUtility Menu MenuCtrls Save Toolbar (ABBSAV command)Utility Menu MenuCtrls Restore Toolbar(ABBRES command)*ABBSAV, Lab, Fname, Ext, - Writes the current abbreviation set to a coded file.*ABBRES,lab,Fname,Ext,- Reads abbreviations from a coded file.3. 嵌套工具栏 下面这个命令例子就是调用文件名为prep.abbr的toolbar命令*ABBR,PREP_ABR,ABBRES,PREP,ABBR 可以达到效果:点击PREP_ABR这个toolbar将会切换到prep.abbr文件创造的toolbar。如果想实现return功能,就创建一个嵌套工具栏切回原来的abbr。 4. 修改ANSYS启动文件的ABBR加载命令 解决方案是在C:Program FilesANSYS Incv121ansysapdl中有一个start121.ans文件,在管理员用户权限下可以编辑,用txt格式打开文件找到:!Once the commands are turned off per above, they can be turned back on again in a different order by the following commands (remove the !).!*ABBR, SAVE_DB , SAVE!*ABBR, QUIT , Fnc_/EXIT!*ABBR, RESUM_DB, RESUME!*ABBR, E-CAE, SIMUTIL!*ABBR, POWRGRPH, Fnc_/GRAPHICS 在此处添加自己需要的指令如*ABBR, REPLOT_DB, REPLOT !Automatically reissues the last display command for convenience. *ABBR, ALLSEL, ALLSEL !Selects all entities with a single command.*ABBR, ETABLE_REFL, ETABLE,REFL !更新单元表数据 保存文件,重启

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论