spnOpenTree: Open a spec-tree in the top tab/spec-tree

Description Usage Arguments Value Author(s) See Also Examples

Description

Open a spec-tree in the active tab from TFilename. The spec-tree file (.str) always is saved with the preprocessing options. If there is no active tab opened Spectrino will create one for you (as in spnAddTree()). To create new spec-tree you have to either open spec-tree with non-existant filename or empty current one by spnDelGrp("*") and save the empty one under new name.

Usage

1
spnOpenTree(TFilename,InclOpt)

Arguments

TFilename

- character string. The extension (*.STR) is not a must. All the filenames or directories must be with forward slashes e.g. D:/Spectrino/Data/Test.str. "<test>" string generates test example

InclOpt

- integer (0,1,2); InclOpt rules where the preprocessing options will be taken from. If InclOpt = 0 then factory setting (no preprocessing) is used; 1 is for last used one; if 2 - the options are taken from TFilename

Value

spnOpenTree returns the number of groups in the new spec-tree. spnGetGrpCount

Author(s)

Teodor Krastev

See Also

spnOpenSpc , spnOpenGrp , spnSaveTree

Examples

1
2
3
4
5
6
7
8
# Initialization of Spectrino
spnNew() 

# generate test set
spnOpenTree("<test>")

# Release of Spectrino
#spnFree(TRUE)

spectrino documentation built on June 4, 2019, 1:02 a.m.