EmptyTree

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

Description

Create an empty tree in Origin

Syntax

EmptyTree()

Parameters

Return

The TreeNode

Examples

import PyOrigin
NewTree = PyOrigin.EmptyTree()
if(NewTree.IsValid()):
    NewTree.SetName('NEW')
    NewTree.SetStrValue('TEST')
    print("%s %(NewTree.GetStrValue()))