Export Views

The following is an example of an export view. For further details refer to the documentation on the export tool.

if $history == false
    say ("This view requires a history.")
    quit (1)
endif

string $exportDir
$exportDir = $home + "/V1/exportForDemo"

say ("exporting")
say ("  HHFormRate[hs,hha,ts] to ",$exportDir,"/HHFormRate.txt")

export (HHFormRate[hs,hha,ts][1]; file=$exportDir/HHFormRate.txt, \
    format=tab, expForm=on, decimals=6, shapeInfo=on)

[Include the views.samm entry and .v file structure.]