<DefaultNameFormat>
Section:
Web Services
Required:
No
Value type:
Formatting string (see description)
Default:
None
Product:
Creo Elements/Direct Model Manager, Creo Elements/Direct Drawing Manager
Description
Use <DefaultNameFormat> in your <MimeTypeMap> section to assign a default name string which Creo Elements/Direct Model Manager applies to all the MIME types you include in your custom.xml.
The default name format is an arbitrary string that can contain variables that correspond to attribute names. The formatting string has the syntax: %variable_name%. When Creo Elements/Direct Model Manager displays the object's name, it substitutes the variables with the appropriate attribute values. See the JavaDoc for the variables you can use with <DefaultNameFormat>.
You can overwrite <DefaultNameFormat> for a specific MIME type if you include <NameFormat> within the necessary <MimeMapping> section.
Example
<MimeTypeMap>
<DefaultNameFormat>%DocumentObjName%-%DocumentClassName%-%ParentFileBaseName%</DefaultNameFormat>
<MimeMapping>
<Extension>3dm</Extension>
<MimeType>application/octet-stream</MimeType>
<FileType>application/x-3dm</FileType>
<Group>model</Group>
</MimeMapping>
<MimeTypeMap>
Was this helpful?