好文档 - 专业文书写作范文服务资料分享网站

Chapter-4-Using-Tcl-to-Control-the-HyperMesh-Session-2017-CN第二天下午 - 图文

天下 分享 时间: 加入收藏 我要投稿 点赞

Chapter 4: TCL to Control the HyperMesh SessionIntroduction to HyperMesh 14.0 Customization 1

? 2016 Altair Engineering, Inc. Proprietary and Confidential. All rights

reserved.

Using TCL to Control the HyperMesh Session -Overview主题呈现:

?TCL GUI 命令和TCL Query 命令?基础的Hypermesh 输入组件?通用的HyperMesh TCL 命令?使用Command Window (命令栏)?Example: 使用Command Window

?创建一个TCL HyperMesh macro 的过程?Example: Automate Creating Forces with a User Specified Magnitude

2

? 2016 Altair Engineering, Inc. Proprietary and Confidential. All rights

reserved.

Using TCL to Control the HyperMesh Session -Overview

?到目前为止,已经创建的Macro在重复任务的自动化中非常强大,然而,有局限性

?可以利用TCL脚本语言为更高级的任务提供支持.

?使用之前的例子, TCL 可以用来为load collector 申请一个用户指定的名称,并将这个信息告诉HyperMesh,Hypermesh 采用这个名称来创建一个load collector

3

? 2016 Altair Engineering, Inc. Proprietary and Confidential. All rights

reserved.

TCL GUI Commands and TCL Query Commands

?HyperMeshTCL GUI 命令用来改变/更新在HyperMesh的GUI

?HyperMeshTCL Query 命令用来查询HyperMesh数据库的信息

?这些命令都有一个共同的前缀“hm_”.

?我们将讨论两个基本的HyperMesh输入组件和常用命令表

4

? 2016 Altair Engineering, Inc. Proprietary and Confidential. All rights

reserved.

Basic HyperMesh Input Widgets

?hm_getstring传递用户输入的字符串值:

hm_getstring ?option? ?message?

hm_getstring “Load collector name”“Enter a name for the load collector”

?这个命令可以与set TCL命令一起使用,将面板中输入的字符串分配给一个变量:

set loadname [hm_getstring “Load collector name”“Enter name for load collector”]

5

Chapter-4-Using-Tcl-to-Control-the-HyperMesh-Session-2017-CN第二天下午 - 图文

Chapter4:TCLtoControltheHyperMeshSessionIntroductiontoHyperMesh14.0Customization1?2016AltairEngineering,Inc.ProprietaryandConfidential.Allrightsreserved.
推荐度:
点击下载文档文档为doc格式
2i7rm8iyju3cwgi893aj3uh255c6he00c1s
领取福利

微信扫码领取福利

微信扫码分享