当前位置:网站首页>Several methods of HyperMesh running script files
Several methods of HyperMesh running script files
2022-07-28 16:34:00 【CaeCoder】
stay HM Can be run in the following ways tcl Script :
adopt File Submenu under menu Run > Tcl Script

stay ToolBars Use in Run Tcl Script
adopt
View -> Toolbars ->Scriptingopen ToolBars Toolbars , as follows :
stay ToolBars Click... On the toolbar Run Tcl/Tk Script Run script , as follows :
source command
In the command window (command window) Run in Tcl / Tk Script , You can use source command + Script name , as follows :
source test.tcl
Be careful :source There are two variants of the command .
The first is Tcl command source: It uses lowercase s, The parameters of this command need to be complete tcl File path . If no path is specified , be HyperMesh Will look in the current working directory , have access to pwd The command determines the path .
source C:/My_scripts/test.tcl
The second is HWT command Source , Use uppercase S. The order causes HyperMesh Search its preset script directory ( The script directory consists of TCL_INCLUDE Definition of environment variables ) To find the script . for example , The search name is test.tcl Script and run the first file found :
::hwt::Source test.tcl
in addition ,Tcl / Tk The required path separator is ** Forward slash / , because Backslash \ ** Is a special reserved character .
You must also use ** quotes “” or Curly braces }** To encapsulate pathnames that contain spaces , for example :
source {C:/Documents and Settings/Paul/My Documents/test.tcl}
stay Utility Add a button under the page
Can be in Utility Create a button under the page to run Tcl / Tk Script , It is modified or created
userpage.macDocuments to complete . for example :
*createbutton(5, "My Script",0,0,10,BLUE,"",EvalTclScript,
"C:/My_scripts/my_script.tcl")
*beginmacro("EvalTclScript")
*evaltclscript($1,0)
*endmacro()
Through the command
*evaltclscript()Tcl / Tk Scripts can also be used
* evaltclscriptThe command runs in the command file . This is starting HyperMesh Or run in batch mode Tcl / Tk Useful when scripting . for example , To run the script in the command file my_script.tcl, have access to :
*evaltclscript("C:/My_scripts/my_script.tcl",0)
From the command line
–tcl <filename>start-up HyperMeshUse... From the command line
–tcl <filename>Option call HyperMesh To run the command file . This option starts a HyperMesh Session and execute by <filename> The specified script . If* quit, be HyperMesh Will exit , otherwise HyperMesh Will remain open .adopt
hmbatch –tcl <filename>start-up HyperMesh BatchThe last method is to use
hmbatch –tcl<filename>Call in batch HyperMesh. HyperMesh Batch mode does not start the graphic display , Therefore, any commands that need to be displayed in the script will be ignored , Otherwise, an error will occur . When the script is complete , Whether it exists in the script or not* quit,HyperMesh Will quit .
Scan the QR code below to follow my wechat official account - CAE Second development of software Lab, See more great articles !

边栏推荐
- 1. Simple command line connection to database
- Kubeedge releases white paper on cloud native edge computing threat model and security protection technology
- Detectron2 installation and testing
- Record doc
- Implementation of skip table
- [Multisim Simulation] LM339 zero crossing circuit simulation
- Automatically pack compressed backup download and delete bat script commands
- 解决uniapp等富文本图片宽度溢出
- 排序4-堆排序与海量TopK问题
- ANSA二次开发 - 界面开发工具介绍
猜你喜欢

1. Simple command line connection to database

Food safety | these two kinds of melons and fruits should be improved, especially for pregnant women with constipation

c语言编程当中两个!!的作用

LabVIEW Linx toolkit controls Arduino equipment (expansion-1)

Paging query in applet

Kubeedge releases white paper on cloud native edge computing threat model and security protection technology

我在上海偶遇数字凤凰#坐标徐汇美罗城

使用js直传oss阿里云存储文件,解决大文件上传服务器限制

ANSYS二次开发 - MFC界面调用ADPL文件

关于web对接针式打印机问题,Lodop使用
随机推荐
The epidemic dividend disappeared, and the "home fitness" foam dissipated
PHP mb_substr 中文乱码
LwIP development | socket | DNS domain name resolution
Multiple commands produce ‘.../xxx.app/Assets.car‘问题
遭MQ连连干翻后的醒悟!含恨码出这份MQ手册助力秋招之旅
KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书
ANSA二次开发 - Visual Studio Code上搭建ANSA二次开发环境
MySQL view event status statements and modification methods
“蔚来杯“2022牛客暑期多校训练营3 J.Journey 0-1最短路
关于web对接针式打印机问题,Lodop使用
Detailed explanation of QT qstring
Use js direct OSS to store files in Alibaba cloud and solve the limitation of large file upload server
Early in the morning, pay Bora SMS to say that you won the "prize"? Dealing with server mining virus - kthreaddi
PHP image synthesis technology
Introduction and implementation of queue (detailed explanation)
Image semantic segmentation practice: tensorflow deeplobv3+ train your own dataset
Two of C language programming!! Role of
Curl returns blank or null without output. Solve the problem
Headline article_ signature
Huada chip hc32f4a0 realizes RS485 communication DMA transceiver