OriginObject::LT execute

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

Execute the Labtalk script code.

Syntax

LT_execute(script)

Parameters

script
Pointer points to the Labtalk script

Return

0 for success

Examples

EX

import PyOrigin
PyOrigin.LT_execute('newbook') #create a newbook
wksPage=PyOrigin.ActivePage()
if wksPage.LT_execute('delete col(B)'):
    print('Col(B) deleted')