找回密码
 注册
Simdroid-非首页
查看: 449|回复: 12

[软件接口] 在HyperMesh中如何运行 TCL脚本文件?

[复制链接]
发表于 2009-1-30 04:49:47 | 显示全部楼层 |阅读模式 来自 美国
有一个TCL脚本文件*.tcl,如何载入HyperMesh并运行?

多谢!
发表于 2011-9-17 15:44:58 | 显示全部楼层 来自 天津
Simdroid开发平台
HyperMesh allows you to create a start-up file that can be used to either execute a series of commands or to define global parameters.  The file must be a HyperMesh command file and is named .hmexec on UNIX systems and hmexec on Windows systems.

点评

赞一个  发表于 2012-9-28 01:29
回复 1 不支持 0

使用道具 举报

发表于 2009-2-1 15:37:45 | 显示全部楼层 来自 香港
1. 打开command window.
   菜单View -> Command Window

2. 在命令窗口输入
source {c:\test.tcl}

评分

1

查看全部评分

回复 不支持

使用道具 举报

发表于 2009-2-2 09:06:42 | 显示全部楼层 来自 北京海淀
楼主,请问,TCl脚本文件是干什么的?...
回复 不支持

使用道具 举报

发表于 2009-3-29 13:51:15 | 显示全部楼层 来自 湖北
不行啊,我试过老提示是错误的命令啊
回复 不支持

使用道具 举报

发表于 2009-4-7 22:18:46 | 显示全部楼层 来自 重庆
期望大牛回答中
回复 不支持

使用道具 举报

发表于 2009-4-8 21:05:24 | 显示全部楼层 来自 美国
In windows: Pull down menu->Edit-> Tcl Script
回复 不支持

使用道具 举报

发表于 2009-4-8 21:09:54 | 显示全部楼层 来自 美国
In the batch mode: C:\Altair\hw9.0\hm\bin\win32\hmbatch.exe -tcl "c:\sample.tcl"

评分

1

查看全部评分

回复 不支持

使用道具 举报

发表于 2009-4-16 21:12:13 | 显示全部楼层 来自 福建福州
1.菜单View -> Command Window
2.Command Window窗口内右键file -> load file:选择你的.tcl文件打开就行了
回复 不支持

使用道具 举报

发表于 2011-2-24 22:36:35 | 显示全部楼层 来自 上海闵行区
本帖最后由 simonjaguar07 于 2011-2-24 22:37 编辑

一种方法:可以修改对应的模板mac,比如nanstran.mac,添加一个按钮就更方便了.
例如创建按钮MY: *createbutton(5,"ok"6,0.10,"my","my.tcl"), 其中ok就是按钮的名称
调用my.tcl文件用*evaltclstring(source/../my.tcl)语句。
另一种方法就是楼上的大虾们说的。
新手学习中
*beginmarco(my.tcl)
   *.......
   *.......
*endmacro

点评

收获挺多的,正在研究中  发表于 2012-8-27 21:55
回复 不支持

使用道具 举报

发表于 2011-6-18 11:08:10 | 显示全部楼层 来自 江苏南京
学习了,看来得学习下tcl
回复 不支持

使用道具 举报

发表于 2011-9-17 11:02:30 | 显示全部楼层 来自 湖南长沙
各位大侠,能不能让tcl不用每次都去打开,而是打开hm直接就有呢?如何设置,谢谢!
回复 不支持

使用道具 举报

发表于 2017-7-24 14:36:59 | 显示全部楼层 来自 上海普陀区
微信公众号名称:TclTk语言开发
公众号:Tcl-Tk
分享TclTk语言编程开发技术干货
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-18 11:37 , Processed in 0.057976 second(s), 21 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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