spnAddTree: Open a spec-tree in a new tab

Description Usage Arguments Value Author(s) See Also Examples

Description

Open a spec-tree in a new tab from TFilename. If the active tab/spec-tree is empty (<no-name> title and no groups opened) that tab will be used instead of creating a new one. The spec-tree file (.str) always is saved with the preprocessing options. If the file does not exist the function will create an empty one, so you can add groups and specs and save it with spnSaveTree("")

Usage

1
spnAddTree(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 (simulation)

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

spnAddTree returns the number of tabs/spec-trees. spnGetGrpCount

Author(s)

Teodor Krastev

See Also

spnOpenTree , spnOpenSpc , spnOpenGrp , spnSaveTree

Examples

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

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

# Release of Spectrino
#spnFree(TRUE)

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