HyperWorks Desktop

*RegisterImportTemplate()

Specifies an import template for reading plot data.

*RegisterImportTemplate()

Specifies an import template for reading plot data.

Previous topic Next topic No expanding text in this topic  

*RegisterImportTemplate()

Specifies an import template for reading plot data.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

*RegisterImportTemplate("Path", type, extension)

Arguments

Names

Description

 

"Path"

The full path of the import template file or the path of the import file relative to the preferences file.

 

Type

This is an optional argument. Type is a string that appears in the file type selector in the file open dialog box.

 

Extension

This is an optional argument. 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.

Example

*BeginPlotDefaults()

 *RegisterImportTemplate("/templates/altair.tpl")

 *RegisterImportTemplate("Path", "Comma Separated Values (*.csv)", "csv")

 *RegisterImportTemplate("/templates/special.tpl")

 *RegisterImportTemplate("/templates/hm.tpl")

 *SetBorderColor(12)

 *SetFrameColor(12)

 *SetHeaderColor(1)

 *SetBackgroundColor(0)

 *SetGridlineColor(14)

 *SetZerolineColor(10)

 *SetAxisColor(1)

 *SetCurveDefaults(1, 3, 1, 0, 0)

 *SetCurveDefaults(1, 4, 1, 0, 0)

 *SetAxisDefaults(0, 11, 2, 1, 11, 4)

 *SetLegendPlacement(TopRight)

 *SetNoteAttachment(View)

 *SetNoteAlignment(Left)

 *SetNoteFont("Helvetica",1,1,24)

 *SetPrintLineThickness(0.5)

 *SetLegendFont("Helvetica",1,1,24)

 *SetAnimBubbleColor(6)

*EndPlotDefaults()

Application

HyperGraph, HyperGraph 3D and HyperStudy.

Context

*BeginPlotDefaults()

*BeginResources()

Comments

A preferred list of import templates or a list of custom templates can be specified by using multiple *RegisterImportTemplates() statements.

See also

 

Import Templates in External Resources.

List of Preference Statements