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 version 2023.
Learn the basics and discover the workspace.
Discover product functionality with interactive tutorials.
Overview of external readers and the Altair Binary Format, the generic ASCII reader, running applications in batch mode, using Tcl/Tk commands, translators, and result math.
Extensions are programs integrated with the application to enhance or extend the user experience.
Altair Binary Format (ABF) is the standard binary format read by the program. A library called abflib allows you to create files in ABF.
A generic ASCII reader is now available which allows you to bring custom results directly into HyperView. The Altair ASCII format is useful for reading the results of any in-house or propriety codes which are saved in a generic format.
Batch mode allows you perform a series of operations outside the program interface.
External resources can be registered in preference files, session files, or Templex files. If an external resource is registered in a program session, it is automatically registered in the session file when the session is saved.
The application's scripting interface is a set of Tcl/Tk commands that follow a simple and consistent syntax.
Translators are utilities that are run from the command line of the operating system to convert various types of files into different formats.
XML commands in the Result Math Module.
Record playback workflows in the application.
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.
Trim, bridge, cut, or replace curves within a given range.
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.
Returns a vector where the value for each index is the maximum value from the range of index 0 to this index.
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 and Model Library is a database of freely accessible scripts and models posted by users and Altair engineers.
Overview of external readers and the Altair Binary Format, the generic ASCII reader, running applications in batch mode, using Tcl/Tk commands, translators, and result math.
Templex is a general purpose text and numeric processor which generates output text based on guidelines defined in a template.
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
}
© 2023 Altair Engineering, Inc. All Rights Reserved.
Intellectual Property Rights Notice | Technical Support | Cookie Consent