hwIPreferenceManager RegisterPreferenceFile

Adds the preference file to the internal list of preference files.

Syntax

hwIPreferenceManager_handle RegisterPreferenceFile menuName filePath isDefault

Application

HyperWorks Tcl

Description

This command reads the preference file to the internal list of preference files.

Inputs

menuName
The name that you want to call the preference file in the Preference menu.
filePath
The filepath of the desired file (within “” or {}, if there are spaces in the filepath).
isDefault
A true or false value.
true
If you want the preference file to be the default preference file.
false
If you do not want the preference file to be set as the default.

Example

hwi GetSessionHandle sess;
sess GetPreferenceManagerHandle pref;
pref RegisterPreferenceFile MyFile.mvw c:/MyFile.mvw false;

Error

Success (0) or an error message is returned.

Keywords

HyperWorks

Tcl

Preference Manager