compname
A reserved variable which holds a list of the component names.
Syntax
read compname
or
readln compname
Comments
Reading compname adds a string to the end of the list of component names.
Examples
read compname
View new features for HyperWorks Desktop 2019.
Learn the basics and discover the workspace.
Discover HyperWorks Desktop functionality with interactive tutorials.
Start HyperWorks Desktop and configure the applications.
Learn how to 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 Session allows you to save the current session as an HTML file or a Microsoft PowerPoint file.
Use the Parameters Browser to parameterize the contents of a session file or report template and automate a variety of analysis processes with the Parameters Browser.
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.
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.
Import templates are files that contain instructions for reading plot data files.
Import is an interpretive computer language designed specifically to create templates for reading plottable data files, such as XY data or time-histories. It is not a general purpose language, like C or BASIC. Import focuses on reading data files in the fastest most reliable manner.
Each template typically consists of four sections or blocks.
Import templates are based on sequential access. All commands that read information--with the exception of integer variables--transfer data into a list or an array.
Import contains provisions for jumping ahead in a file and then backing up (using rewind).
Many import commands can result in a failure condition. This means that the template cannot complete the execution of a command in a meaningful fashion.
The only time that a failure condition does not terminate execution is if it occurs in an if block.
Besides conditional execution, Import also supports iteration.
Integer variables can be declared anywhere in the global block of a template by using the int directive.
Marks the beginning of a comment.
Begins program block.
Terminates a program block.
Sets the variable to the left of the "=" to the value of the expression on the right.
Indicates that the following assumption can be made about a file format.
Counts the occurrences of one character in a data file before the next occurrence of a terminal character.
A reserved variable which holds a list of the component names.
A reserved variable holding the list of component values for the current request.
Specifies the names of one or more components.
Counts the number of lines containing an occurrence of one regular expression in a file before another regular expression is encountered.
Sets a protocol for reversing the mangling process on requests.
Initiates a loop.
Executes the following program block only if the last if statement returned false; that is, failed.
Declares the presence of an expected feature in the file; that is, time values.
Compares the filename extension of the data file to a string.
Compares the name of the current data file to a regular expression.
Searches the current data file until a regular expression is encountered.
Marks the beginning of first block of the template.
Stores the outcome of the following program block for determining the execution of program branches later on.
Declares an integer variable.
Tests the next character in the input stream to see if it is alphabetic.
Tests the next character in the input stream to see if it is a digit.
Indicates that each request in the file is contained on one and only one line.
Declares that the distinction between long and short request names is valid.
A reserved variable which holds a list of the long request names.
Takes the magnitude of a three dimensional vector.
Combine several strings to specify the names of one or more requests.
Records the current file position.
Records the secondary file position.
Reserved variable holding the maximum number of lines to search.
Declares that the distinction between long and short request names is valid.
Causes the results of the current input operation to be ignored.
A predefined variable which holds the number of components in a file.
A predefined variable which holds the number of records in a file.
A predefined variable which holds the number of requests in a file.
A predefined variable which defines the number of decimal places used when reading floating point values.
Sends a message to the message log.
Counts the number of lines containing an occurrence of one regular expression in a file before another regular expression is encountered.
Searches the current data file until a string is encountered.
Reads an integer, floating point number or short string (one word or token).
Reads an integer, floating point number, or string.
Marks the start of the program block which handles the reading of each record from the file.
A reserved variable holding the list of request values for the current record.
Specifies the names of one or more requests.
Return the file to the last position marked.
Return the file to the last secondary position marked.
Sets an integer variable to the value of a constant, variable or simple function.
List of short request names.
Mark the beginning of the data to be read.
Causes the read or readln statement to compare a string read from the data file to a regular expression.
Takes the sum of two integer values.
Indicates that the following block should be executed if the result of the last if statement was true.
Directs a read statement to assume that the next request in the file contains only one component; that is, it’s time-like).
Sets the default data type for a file format.
Sets the data types of one or more requests.
Specifies the number of time units per second.
Truncates a line read by the readln command.
Export templates are Templex programs that export curve data to files.
You can create external programs for processing plot data in the program using the C programming language. Altair IPC, or inter-process communication, allows you to exchange data between the Altair program and an external program.
The HyperWorks Desktop 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.
The Script Exchange is a database of freely accessible scripts posted by users and Altair engineers.
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.
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.
Import templates are files that contain instructions for reading plot data files.
A reserved variable which holds a list of the component names.
A reserved variable which holds a list of the component names.
read compname
or
readln compname
Reading compname adds a string to the end of the list of component names.
read compname
(c) 2019. Altair Engineering Inc. All Rights Reserved.