Preference File Location
On PC, when the application starts, it first reads the preference file in the installation directory, then the preference environment variable (HW_CONFIG_PATH). On Unix, the program first reads the preference file in your home directory, then the current working directory.
Finally, on both PC and Unix, the program looks for the user defined preference file.
Preference files may have any filename, but the program will only look for the .preferences.mvw file in your home directory and the current working directory on Unix.
- All HyperWorks products, except HyperStudy
- preferences.mvw
- HyperStudy only
- preferences_hst.mvw
Include Preference File | Used By |
---|---|
preferences_app.mvw | Applications Menu |
preferences_fepre.mvw | HyperMesh |
preferences_mbd.mvw | MotionView |
preferences_palette.mvw | Palettes |
preferences_plot.mvw | HyperGraph 2D |
preferences_plot3d.mvw | HyperGraph 3D |
preferences_post.mvw | HyperView |
preferences_tools.mvw | Generic Tools |
preferences_study.mvw | HyperStudy |
The file preferences.mvw includes all include preference files, except preferences_study.mvw. The file preferences_hst.mvw includes preferences_plot.mvw and preferences_study.mvw.
HyperWorks also contains two user preference files and two register keys corresponding to each of them.
The preference file may also be customized using the Set Preference File option on the File menu.
When the application is started it checks for Templex statements in the preference file. If any Templex statements are found, they are evaluated prior to executing the preference statements.
This order of processing provides you with additional programming capabilities to automate the generation of preferences. The mathematical, logical, and looping capabilities within Templex can be used to perform many operations such as setting default part attributes, getting environment variables, and performing string manipulations.