HyperWorks Desktop Startup Options

Startup options launch HyperWorks Desktop with specific behaviors or with specific settings defined.

The options are provided as command line options to the application executable or startup script.

HyperWorks Desktop

The following options are valid for HyperWorks Desktop.
-b
Used in conjunction with either the -tcl, -hwc, or -c options to enable batch mode. HyperWorks Desktop will exit immediately upon completion of the Tcl, HWC script, or command file.
-clientconfig <client_config_filename>
Specifies the client configuration file to load, which defines the client that is loaded and which clients are available. If no file is specified, the default clients.dat file is used.
hwfepre.dat
HyperMesh
hwmbdmodel.dat
MotionView
hwplot.dat
HyperGraph 2D
hwplot3d.dat
HyperGraph 3D
hwpost.dat
HyperView
hwtext.dat
TextView
hwvideo.dat
MediaView
<filename>
Performs various behaviors, depending on the value of -clientconfig.
-clientconfig hwfepre.dat
.mvw files - Load the .mvw file. The active client is determined from the .mvw file.
.hm files - Start HyperWorks Desktop with the HyperMesh client and load the .hm file.
-clientconfig hwmbdmodel.dat
.mvw files - Load the .mvw file. The active client is determined from the .mvw file.
.hm files - Start HyperWorks Desktop with the MotionView client and load the .mdl file.
-clientconfig hwplot.dat
.mvw files - Load the .mvw file. The active client is determined from the .mvw file.
-clientconfig hwplot3d.dat
.mvw files - Load the .mvw file. The active client is determined from the .mvw file.
-clientconfig hwpost.dat
.mvw files - Load the .mvw file. The active client is determined from the .mvw file.
Known Result Files: Start HyperWorks Desktop with the HyperView client and load the result file as both model and result files
-clientconfig hwtext.dat
.mvw files - Load the .mvw file. The active client is determined from the .mvw file.
.txt, .html, .tpl files - Start HyperWorks Desktop with the TextView client and load the text file.
-clientconfig hwvideo.dat
.mvw files - Load the .mvw file. The active client is determined from the .mvw file.
.amf, .avi, .wmv files - Start HyperWorks Desktop with the MediaView client and load the media file.
-clientconfig is not specified
.mvw files - Load the .mvw file. The active client is determined from the .mvw file.
.hm files - Automatically use -clientconfig hwfepre.dat and load the .hm file.
.mdl files - Automatically use -clientconfig hwmbdmodel.dat and load the .mdl file.
Known Result Files: Automatically use -clientconfig hwpost.dat and load the result file as both model and result files
-clientconfig hwpost.dat
.txt, .html, .tpl files - Automatically use -clientconfig hwtext.dat and load the text file.
.amf, .avi, .wmv files - Automatically use -clientconfig hwvideo.dat and load the media file.
-f <filename>
Same as <filename>.
-h
Print out the HyperWorks Desktop usage message.
-landscape
Used in conjunction with the -p option to print all pages in a landscape orientation.
-nobg
Used in conjunction with the -b option to force HyperWorks Desktop to run in the foreground on Linux.
-p <mvw_file> [ps_file]
Prints all pages in mvw_file with the specified orientation. If ps_file is specified, instead of going to the printer, the pages are printed to a Postscript file named ps_file.
-portrait
Used in conjunction with the -p option to print all pages in a portrait orientation.
-s <width>x<height>+<x>+<y>
Opens HyperWorks Desktop in a window of the specified width and height in pixels.
Optionally, the x and y location of the upper left corner of the window can be specified.
-tcl <tcl_filename>
Automatically run the specified Tcl script.
Note: There is a space between -tcl and the filename.
-hwc <hwc_filename>
Automatically run the specified HWC script.
Note: There is a space between -hwc and the filename.
-version
Print out the HyperWorks Desktop version.
-wait
Used in conjunction with the -b option to wait for a key press before exiting if running under Windows.

HyperMesh Client

The following options are valid when used with -clientconfig hwfepre.dat.
-a<subprofile_name>
Used in conjunction with -u<profile> to specify a HyperMesh user profile sub-profile.
Note: There is no space between -a and the subprofile name.
For example: -uAbaqus -aStandard3d
-batchcontext
Used in conjunction with the -b option to setup an OpenGL batch context. This is required for machines that require the context to successfully run HyperMesh. The DISPLAY environment variable must be defined and working in order to use this option.
-c<command_filename>
Automatically run the specified command file.
Note: There is no space between -c and the filename.
-continue
Always continue (do not prompt) on errors when processing a command file.
-g
Force the display of the HyperMesh user profile dialog at startup.
-nobatchcontext
Used in conjunction with the -b option to not setup an OpenGL batch context. This is required for machines that cannot use a batch context to successfully run HyperMesh.
-nocommand
Prevent HyperMesh from creating or writing to the command file.
-nouserprofiledialog
Prevent the display of the HyperMesh user profile dialog at startup.
-nowriteviewcommands
Prevent HyperMesh from writing view commands to the command file.
-r<result_filename>
Set the name of the HyperMesh results file to either the input filename with a .res suffix, or to the specified file.
Note: There is no space between -r and the filename.
-templex
Allow Templex statements within command files.
-t<template_filename>
Set the global template to the specified file.
Note: There is no space between -t and the filename.
-u<profile_name>
Used to specify a HyperMesh user profile at startup.
Note: There is no space between -u and the profile name.
For example: -uAnsys

Example: Startup Options

Windows
<altair_home>/hw/bin/<platform>/hw.exe -clientconfig hwfepre.dat -tcl /home/user/my_script.tcl
Linux
<altair_home>/altair/scripts/hw -clientconfig hwfepre.dat -tcl /home/user/my_script.tcl