<MimeMapping>
Section:
Web Services
Required:
No
Value type:
None
Default:
None
Product:
Creo Elements/Direct Model Manager, Creo Elements/Direct Drawing Manager
Description
In the <MimeTypeMap> section, <MimeMapping> encloses the specific characteristics of each MIME type you want Creo Elements/Direct Model Manager to recognize. For each <MimeMapping> section you include in your custom.xml, you must define a file extension type, a corresponding file type, and an appropriate MIME type. Additionally, you can also use
<NameFormat> to define a name string with which Creo Elements/Direct Model Manager displays your file,
<ViewAsAttachmentInClient> to define if Creo Elements/Direct Model Manager displays your file as an attachment to the associated model, drawing, or Masterdata, and
<Group> to define one or more groups to which your file belongs.
Example
<MimeMapping>
<NameFormat>%DocumentObjName%-%DocumentClassName%-%ParentFileBaseName%</NameFormat>
<Extension>easm</Extension>
<MimeType>application/octet-stream</MimeType>
<FileType>application/x-easm</FileType>
<Group>edrawing</Group>
<Group>model</Group>
<Group>viewable</Group>
</MimeMapping>
Was this helpful?