<NameFormat>
Section:
Class
Required:
No
Value type:
Formatting string (see description)
Default:
The <NameFormat> value from the Creo Elements/Direct Manager Server base class
Product:
Creo Elements/Direct Model Manager, Creo Elements/Direct Drawing Manager
Description
A format string used to create a displayable name for an instance of the class (e.g., the name that appears for a node in a tree). The name format is an arbitrary string that can contain variables that correspond to attribute names. These values of the attributes are substituted for the variables when the object's name is displayed.
The formatting string has the syntax: %variable_name%. Creo Elements/Direct Manager Server symbolic constants may be used for the variable names (e.g., DB_STATE, DB_OWNER, etc.). Any characters other than a carriage return or line feed may be used to format the displayed name.
If a class does not specify a <NameFormat> tag, then the <NameFormat> for the Creo Elements/Direct Manager Server base class is used. This string is returned from the getObjName() method of any WMObject.
This tag may be configured to use a localization catalog.
Example
This example shows the name format string configured for LIBRARY_3D in wmconf.xml:
<NameFormat>%Description%</NameFormat>
This example shows the name format string configured for DMModel:
<NameFormat>%InstanceName%: [%Version%] %State%</NameFormat>
Was this helpful?