HyperMesh Reference Guide
Table of Contents
API Programmer's Guides
2017 API Programmer's Guide
14.0 API Programmer's Guide
13.0 API Programmer's Guide
12.0 API Programmer's Guide
11.0 API Programmer's Guide
10.0 API Programmer's Guide
9.0 API Programmer's Guide
Data Names
accelerometers
assemblies
bags
beamsectcols
beamsects
blocks
bodies
boxes
cards
collections
components
configurations
connectors
constrainedextranodes
constrainedrigidbodies
constraints
contactsurfs
controlvols
crosssections
curves
ddvals
dequations
designvars
desvarlinks
directmatrixinputs
dobjrefs
domains
dvprels
elements
ellipsoids
encryptions
equations
features
fields
global
groups
handles
includefiles
joints
laminates
lines
loadcols
loads
loadsteps
materials
mbjoints
mbplanes
mechanisms
meshcontrols
metadata
modules
morphconstraints
morphvolumes
multibodies
nodes
objectives
opticonstraints
opticontrols
optidscreens
optiresponses
outputblocks
parameters
plies
plots
points
positions
properties
regions
rigidwalls
sensors
sets
shapes
solids
surfaces
symmetries
systemcols
systems
tables
tags
titles
transformations
vectorcols
vectors
Ext API
Header Files
Library Files
Running
Examples
Commands and Functions
FE Input Readers
Result Readers
hmlib
hminlib
hmmodlib
hmreslib
Creating FE Input Readers
Commands and Functions
HMASCII
Input Format
Output Format
Commands and Functions
Model Checker
Config File
Checks and Corrections
Scripts
Introduction
Creating Scripts
Running Scripts
Commands and Functions
Solver Templates
Card Previewer
Creating Solver Templates
Commands and Functions
Index
Search
Home
Table of Contents
Scripts
Introduction
Tcl/Tk
Tcl
Table of Contents
API Programmer's Guides
Data Names
Ext API
FE Input Readers
HMASCII
Model Checker
Scripts
Introduction
Command Files
Entity Types
Marks
Vectors and Planes
Data Names
Tcl/Tk
Tcl
Tcl Variables
Tcl Lists
Tcl Arrays
Tcl Mathematical Expressions
Tcl Boolean Statements
Tcl Braces, Quotes and Brackets
Tcl Special Characters
Tcl Procedures
Tcl Namespaces
Tcl Files
Tcl Strings
Tk
Utility Menu
Creating Scripts
Running Scripts
Commands and Functions
Solver Templates
Tcl
Tcl Variables
Tcl
variables are always strings even when they contain numeric values. For most applications, using strings has no effect, but occasionally a HyperWorks application will expect a real number and passing a string will cause an error.
Tcl Lists
All variables in
Tcl
are lists. Lists can contain integers (such as list of node IDs), real numbers (such as coordinates of a node), strings, lists of other lists, or a combination of all the above. A standard variable in
Tcl
is a list of length 1.
Tcl Arrays
The array is a frequently occurring variable type in programming languages. In
Tcl
, arrays complement lists by providing additional capabilities when organizing data. Arrays are
Tcl
variables that have string-based indices (names). Any string value can be used as an array index.
Tcl Mathematical Expressions
In
Tcl
, mathematical expressions are evaluated using the
expr
command. This command works with integers, floating point values and logical (Boolean) values. There are many arithmetic operators and built-in math functions in
Tcl
.
Tcl Boolean Statements
Boolean statements allow you to incorporate logic statements into your control structures and mathematical expressions for evaluation.
Tcl Braces, Quotes and Brackets
Braces, quotes, and square brackets control when variables and commands are processed. They are also used to group parameters.
Tcl Special Characters
The # character is used to skip lines and insert comments. This can be used both from within tkcon as well as from within a
Tcl
script.
Tcl Procedures
Procedures organize a repetitive group of commands into a logical block and allow for arguments to be parameterized. They improve performance and memory because a procedure’s commands and variables only exist within the scope of the procedure.
Tcl Namespaces
Namespaces provide a means of organizing procedures and variables in
Tcl
.
Tcl Files
Since Tcl/Tk scripts run on a variety of platforms, and there are so many use cases for accessing files,
Tcl
provides many commands for file manipulation.
Tcl Strings
The task of extracting and manipulating information via a scripting language is often described using the term
string manipulation
. Strings are a set of alphanumeric characters stored and manipulated together. These sets are concatenated, truncated, or partitioned by the script with a specific end in mind.