sysarch
Returns the platform that Templex is being run on.
Syntax
sysarch
Input
N/A
Example
{
if (sysarch() == “win64” || sysarch() == “linux64”)
wordsize = 64
else
wordsize = 32
endif
}
Comments
- win32
- win64
- linux32
- linux64
View new features for HyperWorks Desktop 2021.1.
Learn the basics and discover the workspace.
Discover HyperWorks Desktop functionality with interactive tutorials.
Start HyperWorks Desktop and configure the applications.
Create, open, import, and save models.
Control the view and display of your model in the modeling window.
Use the Session Browser to view the current session and all the pages and windows it contains in a hierarchical display.
Publish your HyperWorks Desktop session to HTML, PowerPoint, or Report files.
Use the Parameters Browser to parameterize the contents of a session file or report template and automate a variety of analysis processes.
Automate common workflows using the Process Manager or Automate tool.
Explore, organize and manage your personal data, collaborate in teams, and connect to other data sources, such as corporate PLM systems to access CAD data or publish simulation data.
Overview of external readers and the Altair Binary Format, the generic ASCII reader, running HyperWorks in batch mode, using Tcl/Tk commands, translators, and result math.
Extensions are programs integrated with HyperWorks to enhance or extend the user experience.
Templex is a general purpose text and numeric processor which generates output text based on guidelines defined in a template.
A template is an ASCII text file containing plain text, Templex statements, mathematical expressions, constants, and variables that Templex processes.
The syntax for Templex statements is similar to that of the C programming language.
Learn about variables, expressions, and formatting using Templex.
As well as using Templex from within MotionView and HyperGraph, Templex can also be run in batch mode from the command line of Unix operating systems.
List of Templex statements.
Marks text as a comment.
Changes the reference to a file from absolute (root directory) to relative. The relative path will be the difference between path_1 and path_2.
Adds a path to the search path used by Templex.
Appends an output file to the end of a specified file.
Specifies the point to which a note is attached.
Specifies the curve to which a note is attached.
Returns a mirror factor (either 1 or -1) that is value-dependent, either by position of the centroid or the position of the min/max values relative to the x axis.
Terminates output to the currently open output file.
Returns a vector value at the current animation timestep.
Defines macros, headers, and footers.
Creates a dictionary in Templex.
Automatically processes templates, auto_templex_report.
Sends a string or mathematical expression to the standard error stream.
Defines an additional execution path for an if block.
Defines a conditional execution path for an if block.
Completes a macro definition.
Completes an if block.
Completes a loop construct.
Evaluates the contents of a string as an expression.
Terminates the current template.
Opens the file specified by the path and also returns a handle to the file.
Reads data from the file based on the expression.
Begins a loop construct.
Loops once for each element in an array or list.
Specifies the default format for numeric output.
Returns the path for the current working directory. If you switch directories in the console or when loading files, the current working directory path will follow.
Retrieves a value from a vector.
Begins an if block.
Calls a template from within the current template.
Allows you to set a variable using Templex.
Opens a new output file.
Inserts a page break.
Defines a DOE parameter.
Adds a directory path to a path list for included files.
Returns a vector from the specified data file.
Specifies a fill file to be read by Templex.
Given a reference mode in one result file, readmac searches for the best matched mode shape in a target file using model assurance criteria (MAC).
Adds external math functions to a Templex template.
Adds an external reader to a Templex template for importing results data.
Changes the reference to a file from relative to absolute.
Removes a path from the search path used by Templex.
Enables text animation for the text client.
Turns off safe quotes.
Turns on safe quotes.
Assigns a value to a variable within a template.
Synchronizes two different vectors.
Returns the platform that Templex is being run on.
Issues a command to the operating system.
Formats multiple arrays into columns.
Turns off Templex statement processing until a templex_on statement is encountered.
Turns on Templex processing.
Undefines macros and turns off headers and footers.
Begins a loop construct.
Mathematical functions and operators, including syntax, operators and specific information about each function.
The Script Exchange is a database of freely accessible scripts posted by users and Altair engineers.
Templex is a general purpose text and numeric processor which generates output text based on guidelines defined in a template.
Overview of external readers and the Altair Binary Format, the generic ASCII reader, running HyperWorks in batch mode, using Tcl/Tk commands, translators, and result math.
List of Templex statements.
Returns the platform that Templex is being run on.
Returns the platform that Templex is being run on.
sysarch
N/A
{
if (sysarch() == “win64” || sysarch() == “linux64”)
wordsize = 64
else
wordsize = 32
endif
}
(c) 2021. Altair Engineering Inc. All Rights Reserved.