<Preference>
Section:
Options
Required:
No
Value type:
String
Default:
None
Product:
Creo Elements/Direct Model Manager, Creo Elements/Direct Drawing Manager
Description
This is used to define a new preference setting (on the Advanced tab of Preferences), or to change the behavior of an existing preference. Not all preferences are configured in xml - the remaining preferences are configured in Java code.
Only boolean preferences can be set in the XML file. The value of the preference will become the label.
<Group>
The <Group> child tag defines the group in which to place the preference. See the <Group> tag for the list of system-defined groups.
<Key>
The <Key> child tag defines the key used by the system to track the preference.
The values defined in wmconf.xml are described in Edit Preferences.
<DefaultValue>
The <DefaultValue> child tag may be set to true or false to define whether the preference is checked or unchecked by default.
<Reset>
The <Reset> child tag may be set to true or false to define whether the preference should be reset when Creo Elements/Direct Model Manager is restarted.
<Protect>
Use the <Protect> tag to prevent the user from changing the default setting for the property. If <Protect> is true, the preference is grayed out and cannot be changed by the user.
<Advanced>
The preferences that do not contain a Boolean value (true or false) must include the <Advanced> tag in the preference setting definition, and its value must be set to false.
Example
This example shows preferences for a new group:
<Preference>Acme custom preference
<Group>Acme custom group</Group>
<Key>Acme1</Key>
<DefaultValue>true</DefaultValue>
<Protect>true</Protect>
<Reset>true</Reset>
</Preference>
Was this helpful?