hwISession RegisterExternalReader
Registers the given external reader.
Syntax
hwISession_handle RegisterExternalReader filename, type, ext, category
Application
HyperWorks Tcl Query
Inputs
- filename
- The name of the reader to be registered.
- type (Optional)
- The type of the reader to be registered. This string, if specified, appears in the drop-down combo box of 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.
- category (Optional)
- The category of the reader to be registered. Options include “asc” (ASCII), “bin” (binary), or left unspecified for a generic category (which is the default).
Example
hwi GetSessionHandle mySessionName
mySessionName RegisterExternalReader myReader “New External Reader (*.new)” *.NEW asc
Error
Success (0) or an error code.