HyperWorks Desktop

HyperWorks Desktop Startup Options

HyperWorks Desktop Startup Options

Previous topic Next topic No expanding text in this topic  

HyperWorks Desktop Startup Options

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

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.

For example, on Windows:

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

For example, on Linux:

<altair_home>/altair/scripts/hw -clientconfig hwfepre.dat -tcl /home/user/my_script.tcl

 

HyperWorks Desktop Startup Options


-b

Used in conjunction with either the -tcl or -c options to enable batch mode.  HyperWorks Desktop will exit immediately upon completion of the Tcl 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.  Valid values are:

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 the following 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 HWD with HM client and load the .hm file.

-clientconfig hwmbdmodel.dat

.mvw files – Load the .mvw file.  The active client is determined from the .mvw file.

.mdl files – Start HWD with MV 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 HWD with HV 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.

 

.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.  Notice that there is a space between -tcl 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 Startup Options


The following options are only valid when used with -clientconfig hwfepre.dat.

-a<subprofile_name>

Used in conjunction with -u<profile> to specify a HyperMesh user profile sub-profile.  Notice that 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.  Notice that 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.tcl file.

-nouserprofiledialog

Prevent the display of the HyperMesh user profile dialog at startup.

-nowriteviewcommands

Prevent HyperMesh from writing view commands to the command.tcl 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.  Notice that 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.  Notice that there is no space between -t and the filename.

-u<profile_name>

Used to specify a HyperMesh user profile at startup.  Notice that there is no space between -u and the profile name.

For example: -uAnsys

See Also:

Starting HyperWorks Desktop Applications

Start-in Directory