hwISession RegisterImportTemplate
Registers the given import template.
Syntax
hwISession_handle RegisterImportTemplatefilename, type, ext
Application
HyperWorks Tcl Query
Inputs
- filename
- The name of the template to be registered.
- type (Optional)
- The type of template to be registered. This string, if specified, appears in the drop-down combo box in the File dialog.
- ext (Optional)
- If specified, this is the extension actually used as a filter if the specified type is chosen in the File dialog. Also, the registered import template will be among the first tried when files with this extension are imported (accelerating the file recognition process).
Example
hwi GetSessionHandle mySessionName
mySessionName RegisterImportTemplate myTemplate “New Import Template (*.imp)” *.IMP
Error
Success (0) or an error code.