分享给hypermesh二次开发的朋友一个hypermesh二次开发官方指导手册,全手册共计6个章节: Chapter 1: Introduction to TCL.........................................................................1
About TCL................................................................................................................................... 1
About Tk...................................................................................................................................... 2
Basic Tcl Syntax ........................................................................................................................ 2
TCL Command Overview......................................................................................................... 2
Tk Basic Commands............................................................................................................... 17
Chapter 2: HyperMesh Process Automation Introduction ...........................23
What is a HyperMesh Macro ................................................................................................. 23
The HyperMesh Utility Menu ................................................................................................. 24
Practical Exercises.................................................................................................................. 29
Chapter 3: HyperMesh Automation with HyperMesh Macros .......................31
HyperMesh Commands ...............................................................................................31
HyperMesh Macro Structure ........................................................................................35
Process to Create HyperMesh Macros ........................................................................36
Modifying Commands to Create Generalized Macros .................................................40
Practical Exercises.......................................................................................................42
Chapter 4: Using Tcl to Control the HyperMesh Session.............................43
HyperMesh Commands vs. Tcl Modify Commands .....................................................43
Tcl GUI Commands and Tcl Query Commands...........................................................44
Using the Command Window.......................................................................................46
Process to Create a Tcl HyperMesh Macro .................................................................51
Practical Exercises.......................................................................................................56
Chapter 5: Retrieving Data from HyperMesh Entities...................................59
HyperMesh Entities and Their Data Names.................................................................59
Pointers and Flags .......................................................................................................61
Process for Creating a HyperMesh Tcl Script to Retrieve Data
on HyperMesh Entities ......................................................................................62
Practical Exercises.......................................................................................................67
Chapter 6: Interfacing with HyperMesh Solver Templates...........................71
Solver Attributes and Card Images ..............................................................................72
Querying Solver Attributes ...........................................................................................73
Assigning Data to Solver Attributes..............................................................................77
Creating a Reusable and Modular Procedure..............................................................78
Updating Solver Attributes ...........................................................................................84
Practical Exercises.......................................................................................................87
Solutions For Exercises ...................................................................................89