8.1.19.1 OriginBase::IsValid

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

Checks the validity of the object OriginBase

Syntax

IsValid( )

Parameters

Return

Returns True if OriginBase is valid and False if not.

Examples

EX1

import PyOrigin
PyOrigin.LT_execute('newbook name:=MyBook option:=lsname')
if PyOrigin.GetPage('MyBook').IsValid():
    print('MyBook created')
else:
    print('MyBook failed to created')