*RegisterExternalReader()

Specifies an external reader for reading plot data.

Syntax

*RegisterExternalReader (path, type, extension, format)

Application

HyperGraph, HyperGraph 3D and HyperStudy.

Inputs

path
The full path of the external reader file or the path of the external reader file relative to the preference file.
type (optional)
Type is a string that appears in the file type selector in the file open dialog box.
extension (optional)
Extension is the suffix that is associated with this file type. The program uses this information to make filtering of file names easier and to accelerate file recognition.
format
The format can be "BINARY" or "ASCII".

Context

*BeginPlotDefaults()

*BeginResources()

Example

*BeginPlotDefaults()                                    
   *SetBrowserExtension(".req")                          
   *ReadTemplate("/usr/people/altair/new_format.tpl")    
   *RegisterExternalReader("/usr/people/altair/altair_exe")
   *RegisterExternalReader("path", "Comma Separated Values (*.csv)", "csv")
   *RegisterExternalFunction("HIC", "/usr/bin/madymo_hic")
   *SetBackgroundColor(0)                                
   *SetGridlineColor(14)                                 
   *SetHeaderColor(1)                                    
   *SetBorderColor(12)                                   
  • • •
*EndPlotDefaults()

Comments

External readers are programs that contain instructions for reading results data files. Registering external readers allows the program to read all data files of that type.